summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compress.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-07-21 13:58:37 +0200
committerAlejandro Colomar <alx@kernel.org>2023-10-25 13:38:32 +0200
commit3630425f826c7334592c7d1f2527082cfe43f79d (patch)
tree803cee1db4a0661a3fb2caf4dbe8441ce5c64cd8 /src/nxt_http_compress.c
parent0569065aa583470b8dd2689f2aae53f57b74fe46 (diff)
downloadunit-3630425f826c7334592c7d1f2527082cfe43f79d.tar.gz
unit-3630425f826c7334592c7d1f2527082cfe43f79d.tar.bz2
Auto: zlib: added --no-zlib.
Related to: HTTP: compress: gzip Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_http_compress.c')
-rw-r--r--src/nxt_http_compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_compress.c b/src/nxt_http_compress.c
index f78a16ed..55e20e3a 100644
--- a/src/nxt_http_compress.c
+++ b/src/nxt_http_compress.c
@@ -63,7 +63,7 @@ nxt_http_compress_init(nxt_router_conf_t *rtcf, nxt_http_action_t *action,
return NXT_ERROR;
}
- if (nxt_str_eq(&conf->encoding, "gzip", strlen("gzip"))) {
+ if (NXT_WITH_ZLIB && nxt_str_eq(&conf->encoding, "gzip", strlen("gzip"))) {
conf->handler = nxt_http_compress_gzip;
} else {