Skip to content

Commit

Permalink
urllib.quote.parse handles encoding to UTF-8 for us
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
  • Loading branch information
asedeno committed Nov 19, 2022
1 parent 80c335a commit 98dc7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_root_path(self, *, daphne_path):
"""
Tests root_path handling.
"""
headers = [("Daphne-Root-Path", parse.quote(daphne_path.encode("ascii")))]
headers = [("Daphne-Root-Path", parse.quote(daphne_path))]
with DaphneTestingInstance() as test_app:
test_app.add_send_messages([{"type": "websocket.accept"}])
self.websocket_handshake(
Expand Down

0 comments on commit 98dc7e2

Please sign in to comment.