1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ws: delimit ws upgrade protocol when exts available

https://github.com/warmcat/libwebsockets/issues/3151
This commit is contained in:
Andy Green 2025-03-03 07:30:01 +00:00
parent d67dd81b0e
commit a9b8fe7ebf

View file

@ -746,7 +746,8 @@ handshake_0405(struct lws_context *context, struct lws *wsi)
*
* Give him a limited write bugdet
*/
if (lws_extension_server_handshake(wsi, &p, 192))
LWS_CPYAPP(p, "\x0d\x0a");
if (lws_extension_server_handshake(wsi, &p, 190))
goto bail;
#endif
LWS_CPYAPP(p, "\x0d\x0a");