Merge pull request #2 from erikash/fix-urlencode

urlencode now handles parse_qs encoding correctly.
This commit is contained in:
Andrew Godwin 2016-03-08 10:15:25 -08:00
commit 1fb01f59b8

View File

@ -33,7 +33,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
clean_headers[name.lower()] = value.encode("latin1")
# Reconstruct query string
# TODO: get autobahn to provide it raw
query_string = urlencode(request.params).encode("ascii")
query_string = urlencode(request.params, doseq=True).encode("ascii")
# Make sending channel
self.reply_channel = self.channel_layer.new_channel("!websocket.send.?")
# Tell main factory about it