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

ws: protocol list whitespace fix

https://github.com/warmcat/libwebsockets/issues/1423#issuecomment-427690736
This commit is contained in:
Anzey 2018-10-08 15:31:01 +08:00 committed by Andy Green
parent bdaa339a6e
commit bbbdc85421

View file

@ -302,7 +302,7 @@ lws_process_ws_upgrade(struct lws *wsi)
*p && *p != ',') {
/* ignore leading spaces */
if (!non_space_char_found && *p == ' ') {
n++;
p++;
continue;
}
non_space_char_found = 1;