mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
ws: flags to opcodes should ignore CURLWS_CONT flag
When converting WebSocket flags such as CURLWS_TEXT | CURLWS_CONT we want to exclude CURLWS_CONT from the lookup. Closes #14397
This commit is contained in:
parent
b102763c19
commit
0011df47bc
1 changed files with 1 additions and 1 deletions
2
lib/ws.c
2
lib/ws.c
|
|
@ -560,7 +560,7 @@ static ssize_t ws_enc_write_head(struct Curl_easy *data,
|
|||
return -1;
|
||||
}
|
||||
|
||||
opcode = ws_frame_flags2op((int)flags);
|
||||
opcode = ws_frame_flags2op((int)flags & ~CURLWS_CONT);
|
||||
if(!opcode) {
|
||||
failf(data, "WS: provided flags not recognized '%x'", flags);
|
||||
*err = CURLE_SEND_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue