Fix python 3 header grabbing

This commit is contained in:
Andrew Godwin 2016-06-21 08:24:27 -07:00
parent 0ebfea94a8
commit 0942b382ce

View File

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