Skip to content

Commit

Permalink
HTTP/2: fixed invalid headers handling (ticket #831).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
VBart committed Nov 13, 2015
1 parent 89a049b commit 8323cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http/v2/ngx_http_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 8323cd6

Please sign in to comment.