From 0942b382ce6ef7dd77aa55efe0b23523d202102c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 21 Jun 2016 08:24:27 -0700 Subject: [PATCH] Fix python 3 header grabbing --- daphne/http_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index db50591..6049c30 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -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))