summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_error.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-08-26 18:29:00 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-08-26 18:29:00 +0300
commite2abfaf381984b9c441555a3614336b64008c80d (patch)
tree7e0dab421f7e5588a7e350009d688771a04b321c /src/nxt_http_error.c
parent129882413013adc803d855b3ba413b55882c4293 (diff)
downloadunit-e2abfaf381984b9c441555a3614336b64008c80d.tar.gz
unit-e2abfaf381984b9c441555a3614336b64008c80d.tar.bz2
Adding body handler to nxt_http_request_header_send().
Diffstat (limited to 'src/nxt_http_error.c')
-rw-r--r--src/nxt_http_error.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nxt_http_error.c b/src/nxt_http_error.c
index c7c7e81a..1dcd8783 100644
--- a/src/nxt_http_error.c
+++ b/src/nxt_http_error.c
@@ -51,12 +51,10 @@ nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
r->resp.content_length = NULL;
r->resp.content_length_n = nxt_length(error);
- nxt_http_request_header_send(task, r);
-
r->state = &nxt_http_request_send_error_body_state;
- nxt_work_queue_add(&task->thread->engine->fast_work_queue,
- nxt_http_request_send_error_body, task, r, NULL);
+ nxt_http_request_header_send(task, r, nxt_http_request_send_error_body);
+
return;
fail: