micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

aiohttp: Fix type of `Sec-WebSocket-Key` in `aiohttp_ws.py`

Open AuroraTea opened this issue 1 year ago • 0 comments

The function binascii.b2a_base64() returns a bytes. Here needs a string Otherwise, the value of Sec-WebSocket-Key in the headers will be b'<BASE64-ENCODED_RANDOM_VALUE>'. It means there will be b' at the beginning and ' at the end.

AuroraTea avatar Apr 14 '24 08:04 AuroraTea