summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compress_gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_compress_gzip.c')
-rw-r--r--src/nxt_http_compress_gzip.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nxt_http_compress_gzip.c b/src/nxt_http_compress_gzip.c
index c1ff962b..f8d88bf8 100644
--- a/src/nxt_http_compress_gzip.c
+++ b/src/nxt_http_compress_gzip.c
@@ -66,6 +66,17 @@ nxt_http_compress_gzip(nxt_task_t *task, nxt_http_request_t *r,
return NXT_OK;
}
+ ret = nxt_http_compress_accept_encoding(task, r, conf->accept_encoding,
+ &gzip);
+ switch (ret) {
+ case NXT_ERROR:
+ return NXT_ERROR;
+ case 0:
+ return NXT_OK;
+ case 1:
+ break;
+ }
+
ret = nxt_http_compressible_mtype(task, r, conf->mtrule);
switch (ret) {
case NXT_ERROR: