mirror of
https://github.com/django/daphne.git
synced 2024-11-21 15:36:33 +03:00
Fix type of empty query string
This commit is contained in:
parent
e9fdd4f7b6
commit
95ef5c96e2
|
@ -39,7 +39,7 @@ class WebRequest(http.Request):
|
|||
if self.requestHeaders.hasHeader(b"Upgrade"):
|
||||
upgrade_header = self.requestHeaders.getRawHeaders(b"Upgrade")[0]
|
||||
# Calculate query string
|
||||
self.query_string = ""
|
||||
self.query_string = b""
|
||||
if b"?" in self.uri:
|
||||
self.query_string = self.uri.split(b"?", 1)[1]
|
||||
# Is it WebSocket? IS IT?!
|
||||
|
|
Loading…
Reference in New Issue
Block a user