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

Allow extensions when no protocol was specified.

This commit is contained in:
David Galeano 2013-01-09 19:49:50 +08:00 committed by Andy Green
parent 85a092135e
commit 4c38f14527

View file

@ -1213,7 +1213,7 @@ select_protocol:
wsi->c_callback = wsi->protocol->callback;
free(wsi->c_protocol);
goto check_accept;
goto check_extensions;
}
while (*pc && !okay) {
@ -1265,6 +1265,8 @@ select_protocol:
}
check_extensions:
/* instantiate the accepted extensions */
if (!wsi->utf8_token[WSI_TOKEN_EXTENSIONS].token_len) {