Skip to content

Commit

Permalink
aiohttp: Fix type of header's Sec-WebSocket-Key.
Browse files Browse the repository at this point in the history
Signed-off-by: AuroraTea <1352685369@qq.com>
  • Loading branch information
AuroraTea committed Apr 14, 2024
1 parent 45ead11 commit 8b51240
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 8b51240

Please sign in to comment.