diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-06-11 00:24:28 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-06-19 16:15:04 +0100 |
commit | 4071de5797da0a104b4983fc1ad393d3744b6128 (patch) | |
tree | 003803a861f2609cfae58db412e1c3d7ee6dc8f9 /src/nxt_http_static.c | |
parent | ea5c41b8056997ed40138020272b5159271f1b87 (diff) | |
download | unit-4071de5797da0a104b4983fc1ad393d3744b6128.tar.gz unit-4071de5797da0a104b4983fc1ad393d3744b6128.tar.bz2 |
[WIP] HTTP Compression Supportcompr
Diffstat (limited to 'src/nxt_http_static.c')
-rw-r--r-- | src/nxt_http_static.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c index ee25015e..c8828782 100644 --- a/src/nxt_http_static.c +++ b/src/nxt_http_static.c @@ -647,6 +647,8 @@ nxt_http_static_send_ready(nxt_task_t *task, void *obj, void *data) body_handler = NULL; } + r->resp.mime_type = mtype; + nxt_http_request_header_send(task, r, body_handler, NULL); r->state = &nxt_http_static_send_state; @@ -799,6 +801,8 @@ nxt_http_static_body_handler(nxt_task_t *task, void *obj, void *data) nxt_work_queue_t *wq; nxt_http_request_t *r; + printf("%s: \n", __func__); + r = obj; fb = r->out; @@ -859,6 +863,8 @@ nxt_http_static_buf_completion(nxt_task_t *task, void *obj, void *data) nxt_off_t rest; nxt_http_request_t *r; + printf("%s: \n", __func__); + b = obj; r = data; |