From bbbdc85421c3edb3eadd91017be64736dcfe37f0 Mon Sep 17 00:00:00 2001 From: Anzey Date: Mon, 8 Oct 2018 15:31:01 +0800 Subject: [PATCH] ws: protocol list whitespace fix https://github.com/warmcat/libwebsockets/issues/1423#issuecomment-427690736 --- lib/roles/ws/server-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;