From 2d2a0cf82289e0511bf52314db6c1cedaf80eb10 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 28 Mar 2017 11:28:59 -0700 Subject: [PATCH] Fix unicode-ness of http version --- 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 ec7d344..a0ca5d2 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -159,7 +159,7 @@ class WebRequest(http.Request): self.factory.channel_layer.send("http.request", { "reply_channel": self.reply_channel, # TODO: Correctly say if it's 1.1 or 1.0 - "http_version": self.clientproto.split("/")[-1], + "http_version": self.clientproto.split(b"/")[-1].decode("ascii"), "method": self.method.decode("ascii"), "path": self.unquote(self.path), "root_path": self.root_path,