Removed surplus check for NUL in nxt_http_validate_host().

Such header fields are already rejected by HTTP parser.
This commit is contained in:
Valentin Bartenev
2019-02-23 14:48:33 +03:00
parent 608e09e9de
commit c5563d142d

View File

@@ -139,7 +139,6 @@ nxt_http_validate_host(nxt_str_t *host, nxt_mp_t *mp)
break; break;
case '/': case '/':
case '\0':
return NXT_HTTP_BAD_REQUEST; return NXT_HTTP_BAD_REQUEST;
default: default: