summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_router.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 180d7017..c87b48b8 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -956,6 +956,12 @@ nxt_router_conn_http_header_parse(nxt_task_t *task, void *obj, void *data)
}
c->socket.data = rp;
+
+ ret = nxt_http_parse_request_init(rp, c->mem_pool);
+ if (nxt_slow_path(ret != NXT_OK)) {
+ nxt_router_conn_close(task, c, data);
+ return;
+ }
}
ret = nxt_http_parse_request(rp, &c->read->mem);