Fix type of empty query string

This commit is contained in:
Andrew Godwin 2016-02-10 18:49:46 +00:00
parent e9fdd4f7b6
commit 95ef5c96e2

View File

@ -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?!