diff options
author | Igor Sysoev <igor@sysoev.ru> | 2019-08-26 18:29:00 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2019-08-26 18:29:00 +0300 |
commit | e2abfaf381984b9c441555a3614336b64008c80d (patch) | |
tree | 7e0dab421f7e5588a7e350009d688771a04b321c /src/nxt_http_request.c | |
parent | 129882413013adc803d855b3ba413b55882c4293 (diff) | |
download | unit-e2abfaf381984b9c441555a3614336b64008c80d.tar.gz unit-e2abfaf381984b9c441555a3614336b64008c80d.tar.bz2 |
Adding body handler to nxt_http_request_header_send().
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r-- | src/nxt_http_request.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 916004d2..8c38eeb2 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -369,7 +369,8 @@ nxt_http_request_read_body(nxt_task_t *task, nxt_http_request_t *r) void -nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r) +nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r, + nxt_work_handler_t body_handler) { u_char *p, *end; nxt_http_field_t *server, *date, *content_length; @@ -430,7 +431,7 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r) } if (nxt_fast_path(r->proto.any != NULL)) { - nxt_http_proto[r->protocol].header_send(task, r); + nxt_http_proto[r->protocol].header_send(task, r, body_handler); } return; |