Skip to content

Commit

Permalink
http: compression: fix selection
Browse files Browse the repository at this point in the history
  • Loading branch information
OurEra authored and lws-team committed May 4, 2022
1 parent e86490f commit 5d56f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roles/http/compression/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d56f76

Please sign in to comment.