mirror of
https://github.com/django/daphne.git
synced 2025-07-29 00:19:45 +03:00
Fixed #577: Use scheme key from ASGI request message
This commit is contained in:
parent
476d1500c6
commit
28ace41edf
|
@ -148,6 +148,9 @@ class AsgiRequest(http.HttpRequest):
|
|||
def GET(self):
|
||||
return http.QueryDict(self.message.get('query_string', ''))
|
||||
|
||||
def _get_scheme(self):
|
||||
return self.message.get("scheme", "http")
|
||||
|
||||
def _get_post(self):
|
||||
if not hasattr(self, '_post'):
|
||||
self._read_started = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user