summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_return.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-06-29 00:30:01 +0200
committerAlejandro Colomar <alx@nginx.com>2023-09-03 18:38:05 +0200
commitecc27ab1d4adba7223beb3b122f9b041ab6ae323 (patch)
tree3867129209eebdd661bc064055b0af9cc75af826 /src/nxt_http_return.c
parentde56ec617f148a15430d7c2d20e1db46db56c62d (diff)
downloadunit-ecc27ab1d4adba7223beb3b122f9b041ab6ae323.tar.gz
unit-ecc27ab1d4adba7223beb3b122f9b041ab6ae323.tar.bz2
HTTP: refactor: storing the body_handler as part of r.
This will allow sending the header from a totally different point, since the data for the call is present in the request, which is available everywhere. It will also allow consulting in a filter if there is a body_handler installed. The gzip filter will need this, as it should be a no-op if there is no body handler installed. Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'src/nxt_http_return.c')
-rw-r--r--src/nxt_http_return.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_return.c b/src/nxt_http_return.c
index b50e4ad0..f9e057b8 100644
--- a/src/nxt_http_return.c
+++ b/src/nxt_http_return.c
@@ -206,7 +206,7 @@ nxt_http_return_send_ready(nxt_task_t *task, void *obj, void *data)
r->state = &nxt_http_return_send_state;
- nxt_http_request_header_send(task, r, NULL, NULL);
+ nxt_http_request_header_send(task, r);
return;