Removed surplus check for NUL in nxt_http_validate_host().
Such header fields are already rejected by HTTP parser.
This commit is contained in:
parent
608e09e9de
commit
c5563d142d
1 changed files with 0 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue