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

Flags to opcodes should ignore CURLWS_CONT flag #14397

Closed
wants to merge 1 commit into from

Conversation

Pete-Cordell
Copy link
Contributor

When converting WebSocket flags such as CURLWS_TEXT | CURLWS_CONT to opcodes for sending fragmented frames, we want to exclude CURLWS_CONT from the lookup so AND it out.

Alternatively, this tweak could be moved into the ws_frame_flags2op() function or the WS_FRAMES table could be re-ordered to test CURLWS_TEXT and CURLWS_BINARY first.

(I'm assuming this is how call to curl_ws_send() is supposed to be used. My apologies if not.)

When converting WebSocket flags such as CURLWS_TEXT | CURLWS_CONT we want to exclude CURLWS_CONT from the lookup.
@bagder bagder closed this in 0011df4 Aug 7, 2024
@bagder
Copy link
Member

bagder commented Aug 7, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants