Fix header to look for

This commit is contained in:
Andrew Godwin 2016-06-21 08:17:14 -07:00
parent 5a451ab06a
commit cdafec588c

View File

@ -117,7 +117,7 @@ class WebRequest(http.Request):
if b"_" in name: if b"_" in name:
continue continue
for value in values: for value in values:
if name.lower() == "asgi_root_path": if name.lower() == "daphne_root_path":
self.root_path = self.unquote(value) self.root_path = self.unquote(value)
else: else:
self.clean_headers.append((name.lower(), value)) self.clean_headers.append((name.lower(), value))