Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AuroraTea
Copy link

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.

Signed-off-by: AuroraTea <1352685369@qq.com>
@AuroraTea AuroraTea changed the title Fix type of Sec-WebSocket-Key in aiohttp_ws.py aiohttp: Fix type of Sec-WebSocket-Key in aiohttp_ws.py Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant