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:
parent
d67dd81b0e
commit
a9b8fe7ebf
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue