Closed AuroraTea closed 1 month ago
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.
binascii.b2a_base64()
bytes
string
Sec-WebSocket-Key
b'<BASE64-ENCODED_RANDOM_VALUE>'
b'
'
Thanks for updating. This is now merged.
The function
binascii.b2a_base64()
returns abytes
. Here needs astring
Otherwise, the value ofSec-WebSocket-Key
in the headers will beb'<BASE64-ENCODED_RANDOM_VALUE>'
. It means there will beb'
at the beginning and'
at the end.