Skip to content

Commit

Permalink
Fix type of Sec-WebSocket-Key in aiohttp_ws.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraTea committed Apr 14, 2024
1 parent 45ead11 commit f21aba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-ecosys/aiohttp/aiohttp/aiohttp_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def handshake(self, uri, ssl, req):
headers["Host"] = f"{uri.hostname}:{uri.port}"
headers["Connection"] = "Upgrade"
headers["Upgrade"] = "websocket"
headers["Sec-WebSocket-Key"] = key
headers["Sec-WebSocket-Key"] = key.decode('utf-8')
headers["Sec-WebSocket-Version"] = "13"
headers["Origin"] = f"{_http_proto}://{uri.hostname}:{uri.port}"

Expand Down

0 comments on commit f21aba9

Please sign in to comment.