mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 03:42:06 +00:00
HTTP/2: fixed invalid headers handling (ticket #831).
The r->invalid_header flag wasn't reset once an invalid header appeared in a request, resulting in all subsequent headers in the request were also marked as invalid.
This commit is contained in:
parent
89a049be89
commit
8323cd693b
1 changed files with 2 additions and 0 deletions
|
|
@ -2949,6 +2949,8 @@ ngx_http_v2_validate_header(ngx_http_request_t *r, ngx_http_v2_header_t *header)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
r->invalid_header = 0;
|
||||
|
||||
cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
|
||||
|
||||
for (i = (header->name.data[0] == ':'); i != header->name.len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue