diff options
Diffstat (limited to 'src/nxt_http_error.c')
-rw-r--r-- | src/nxt_http_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_http_error.c b/src/nxt_http_error.c index 370b12db..8e9212a5 100644 --- a/src/nxt_http_error.c +++ b/src/nxt_http_error.c @@ -57,8 +57,8 @@ nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r, r->state = &nxt_http_request_send_error_body_state; - nxt_http_request_header_send(task, r, - nxt_http_request_send_error_body, NULL); + r->body_handler = nxt_http_request_send_error_body; + nxt_http_request_header_send(task, r); return; fail: |