Compare commits

..

No commits in common. "6040183562c025f7771890a661b5caff76d17813" and "31f063e0ae6a936f34b907f11c01b29fe28faa68" have entirely different histories.

2 changed files with 0 additions and 18 deletions

View File

@ -1,17 +0,0 @@
from channels.http import AsgiHandler
from channels.routing import ProtocolTypeRouter, URLRouter
from django.conf.urls import url
from . import views
# No async routing currently; just default sync http.
application = ProtocolTypeRouter({
"http": URLRouter([
url(r'^(?P<access_code>[a-zA-Z]{6})/', URLRouter([
url(r"status/(?P<hashcode>[a-z0-9]{64})/",
views.StatusLongPollConsumer, name='status'),
])),
url(r"", AsgiHandler),
]),
})

View File

@ -382,4 +382,3 @@ class StatusLongPollConsumer(AsyncHttpConsumer):
await self.send_response(302, b'', headers=[ await self.send_response(302, b'', headers=[
(b"Location", no_hash_status.encode('utf-8')) (b"Location", no_hash_status.encode('utf-8'))
]) ])
await self.http_disconnect(None)