diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-02-23 14:48:33 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-02-23 14:48:33 +0300 |
commit | c5563d142dd189050aee08a00e3079e3e7ff14a7 (patch) | |
tree | 7bb1eb8af81624aa4ea084910134713427c6c306 /src | |
parent | 608e09e9def182756e2f1650c6f3416b209fbf58 (diff) | |
download | unit-c5563d142dd189050aee08a00e3079e3e7ff14a7.tar.gz unit-c5563d142dd189050aee08a00e3079e3e7ff14a7.tar.bz2 |
Removed surplus check for NUL in nxt_http_validate_host().
Such header fields are already rejected by HTTP parser.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_request.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 6029c5c0..b7d46c72 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -139,7 +139,6 @@ nxt_http_validate_host(nxt_str_t *host, nxt_mp_t *mp) break; case '/': - case '\0': return NXT_HTTP_BAD_REQUEST; default: |