summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_static.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-08-28 17:34:20 +0200
committerAlejandro Colomar <alx@kernel.org>2023-12-19 15:02:41 +0100
commit9ec5c6013be752b8e069103a2ec7c9bff5b01679 (patch)
treee6caae1b7553ac281c58d20998f3f2ca936e6085 /src/nxt_http_static.c
parent04e9f235ddbb3ae1343897f755c9ccf80c99f021 (diff)
downloadunit-9ec5c6013be752b8e069103a2ec7c9bff5b01679.tar.gz
unit-9ec5c6013be752b8e069103a2ec7c9bff5b01679.tar.bz2
HTTP: compress: added "mime_types" rule.
Signed-off-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_http_static.c')
-rw-r--r--src/nxt_http_static.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c
index fc26924d..490a41d4 100644
--- a/src/nxt_http_static.c
+++ b/src/nxt_http_static.c
@@ -648,6 +648,7 @@ nxt_http_static_send_ready(nxt_task_t *task, void *obj, void *data)
r->body_handler = NULL;
}
+ r->resp.mtype = mtype;
nxt_http_request_header_send(task, r);
r->state = &nxt_http_static_send_state;