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

Fix #340 "HTTP/1.1 400 Illegal character CNTL=0xf" #341

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Fix #340 "HTTP/1.1 400 Illegal character CNTL=0xf" #341

merged 1 commit into from
Jan 4, 2022

Conversation

ahausladen
Copy link
Contributor

If the per message compression is active the websocket client sends an illegal header to the server.

Instead of
... ; server_max_window_bits=15; client_max_window_bits=15
the client sends
? ...; server_max_window_bits=\xf; client-max_window_bits=\xf`

This is caused by using uint8_t that is interpreted as character instead of a number when building the headers.

This PR fixes this bug by casting the uint8_t to an int when building the headers.

…owBits/clientMaxWindowBits being uint8_t (signed char).
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.

2 participants