Skip to content

Commit 25d88c2

Browse files
Don't tell nginx to use zstd compression when Accept-Encoding only contains gzip (#15)
1 parent 1e0fa0b commit 25d88c2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

filter/ngx_http_zstd_filter_module.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,7 @@ ngx_http_zstd_header_filter(ngx_http_request_t *r)
215215

216216
r->gzip_vary = 1;
217217

218-
if (!r->gzip_tested) {
219-
if (ngx_http_zstd_ok(r) != NGX_OK) {
220-
return ngx_http_next_header_filter(r);
221-
}
222-
223-
} else if (!r->gzip_ok) {
218+
if (ngx_http_zstd_ok(r) != NGX_OK) {
224219
return ngx_http_next_header_filter(r);
225220
}
226221

0 commit comments

Comments
 (0)