mirror of
https://github.com/django/daphne.git
synced 2024-11-11 02:26:35 +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"):
|
if self.requestHeaders.hasHeader(b"Upgrade"):
|
||||||
upgrade_header = self.requestHeaders.getRawHeaders(b"Upgrade")[0]
|
upgrade_header = self.requestHeaders.getRawHeaders(b"Upgrade")[0]
|
||||||
# Calculate query string
|
# Calculate query string
|
||||||
self.query_string = ""
|
self.query_string = b""
|
||||||
if b"?" in self.uri:
|
if b"?" in self.uri:
|
||||||
self.query_string = self.uri.split(b"?", 1)[1]
|
self.query_string = self.uri.split(b"?", 1)[1]
|
||||||
# Is it WebSocket? IS IT?!
|
# Is it WebSocket? IS IT?!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user