diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-06-14 15:18:43 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-06-14 15:18:43 +0300 |
commit | 3e2632688f53c4cb08e7ac03c61e71facd038df4 (patch) | |
tree | 48c879f72d014b9e2c606618fc1e837ffab4a638 /src | |
parent | db6642f374add9d645270e2eec3b803f8ab65321 (diff) | |
download | unit-3e2632688f53c4cb08e7ac03c61e71facd038df4.tar.gz unit-3e2632688f53c4cb08e7ac03c61e71facd038df4.tar.bz2 |
Router: follow up to HTTP parser changes.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_router.c | 6 |
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); |