Fixed #577: Use scheme key from ASGI request message

This commit is contained in:
Andrew Godwin 2017-03-28 13:37:33 -07:00
parent 476d1500c6
commit 28ace41edf

View File

@ -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