summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_proxy.c')
-rw-r--r--src/nxt_http_proxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_http_proxy.c b/src/nxt_http_proxy.c
index 6aa3aabb..630a277a 100644
--- a/src/nxt_http_proxy.c
+++ b/src/nxt_http_proxy.c
@@ -277,7 +277,9 @@ nxt_http_proxy_header_read(nxt_task_t *task, void *obj, void *data)
r->state = &nxt_http_proxy_read_state;
- nxt_http_request_header_send(task, r, nxt_http_proxy_send_body, peer);
+ r->body_handler = nxt_http_proxy_send_body;
+ r->body_handler_data = peer;
+ nxt_http_request_header_send(task, r);
}