diff --git a/lib/ws.c b/lib/ws.c index 3e8a4e818e..5854e5a5d3 100644 --- a/lib/ws.c +++ b/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;