mirror of
https://github.com/django/daphne.git
synced 2025-07-02 02:43:08 +03:00
Fix python 3 header grabbing
This commit is contained in:
parent
0ebfea94a8
commit
0942b382ce
|
@ -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() == "daphne-root-path":
|
if name.lower() == b"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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user