From 5d56f7651f0ba2f454a4b1914d4d6b26dd5fd87e Mon Sep 17 00:00:00 2001 From: Richard Shi Date: Wed, 4 May 2022 05:10:37 +0100 Subject: [PATCH] http: compression: fix selection https://github.com/warmcat/libwebsockets/issues/2633 --- lib/roles/http/compression/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/http/compression/stream.c b/lib/roles/http/compression/stream.c index 9898b76f9..d4c72aa43 100644 --- a/lib/roles/http/compression/stream.c +++ b/lib/roles/http/compression/stream.c @@ -65,7 +65,7 @@ lws_http_compression_apply(struct lws *wsi, const char *name, for (n = 0; n < LWS_ARRAY_SIZE(lcs_available); n++) { /* if name is non-NULL, choose only that compression method */ - if (name && !strcmp(lcs_available[n]->encoding_name, name)) + if (name && strcmp(lcs_available[n]->encoding_name, name)) continue; /* * If we're the server, confirm that the client told us he could