Skip to content

Commit

Permalink
Don't tell nginx to use zstd compression when Accept-Encoding only co…
Browse files Browse the repository at this point in the history
…ntains gzip (#15)
  • Loading branch information
SuperSandro2000 authored Feb 8, 2023
1 parent 1e0fa0b commit 25d88c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions filter/ngx_http_zstd_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,7 @@ ngx_http_zstd_header_filter(ngx_http_request_t *r)

r->gzip_vary = 1;

if (!r->gzip_tested) {
if (ngx_http_zstd_ok(r) != NGX_OK) {
return ngx_http_next_header_filter(r);
}

} else if (!r->gzip_ok) {
if (ngx_http_zstd_ok(r) != NGX_OK) {
return ngx_http_next_header_filter(r);
}

Expand Down

0 comments on commit 25d88c2

Please sign in to comment.