summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-14 15:18:43 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-14 15:18:43 +0300
commit3e2632688f53c4cb08e7ac03c61e71facd038df4 (patch)
tree48c879f72d014b9e2c606618fc1e837ffab4a638 /src
parentdb6642f374add9d645270e2eec3b803f8ab65321 (diff)
downloadunit-3e2632688f53c4cb08e7ac03c61e71facd038df4.tar.gz
unit-3e2632688f53c4cb08e7ac03c61e71facd038df4.tar.bz2
Router: follow up to HTTP parser changes.
Diffstat (limited to '')
-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);