summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_static.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_static.c')
-rw-r--r--src/nxt_http_static.c6
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;