kopia lustrzana https://github.com/micropython/micropython-lib
aiohttp: Fix type of header's Sec-WebSocket-Key.
Signed-off-by: AuroraTea <1352685369@qq.com>
rodzic
45ead11f96
commit
8b51240072
|
@ -143,7 +143,7 @@ class WebSocketClient:
|
|||
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}"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue