mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
Fix unicode-ness of http version
This commit is contained in:
parent
4a764f7966
commit
2d2a0cf822
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user