diff --git a/lib/roles/ws/server-ws.c b/lib/roles/ws/server-ws.c index 70de61be9..9f47f687b 100644 --- a/lib/roles/ws/server-ws.c +++ b/lib/roles/ws/server-ws.c @@ -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;