mirror of
https://github.com/django/daphne.git
synced 2024-11-25 09:13:44 +03:00
Merge pull request #2 from erikash/fix-urlencode
urlencode now handles parse_qs encoding correctly.
This commit is contained in:
commit
1fb01f59b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user