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

http: compression: fix selection

https://github.com/warmcat/libwebsockets/issues/2633
This commit is contained in:
Richard Shi 2022-05-04 05:10:37 +01:00 committed by Andy Green
parent e86490fc45
commit 5d56f7651f

View file

@ -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