summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-02-19 20:25:25 +0300
committerValentin Bartenev <vbart@nginx.com>2019-02-19 20:25:25 +0300
commit2d4697dbbec7dd51ed5aeebb10e543038e15a359 (patch)
treeea039720eda5ff7987ed5c4a107440b1c7edc15b /src/nxt_h1proto.c
parentacb5b0aad7f9aca966f4d40d05c104f4df68b036 (diff)
downloadunit-2d4697dbbec7dd51ed5aeebb10e543038e15a359.tar.gz
unit-2d4697dbbec7dd51ed5aeebb10e543038e15a359.tar.bz2
Validation and normalization of request host.
Diffstat (limited to 'src/nxt_h1proto.c')
-rw-r--r--src/nxt_h1proto.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index 2194e56f..4e1b22e9 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -526,9 +526,7 @@ nxt_h1p_conn_request_header_parse(nxt_task_t *task, void *obj, void *data)
return;
}
- /* ret == NXT_ERROR */
- status = NXT_HTTP_BAD_REQUEST;
-
+ status = ret;
goto error;
case NXT_AGAIN: