Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6291:932a465537ef
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 13 Nov 2015 20:10:50 +0300 |
parents | 0f4b7800e681 |
children | 1d696c646d81 |
comparison
equal
deleted
inserted
replaced
6290:4d5ac1a31d44 | 6291:932a465537ef |
---|---|
2947 | 2947 |
2948 if (header->name.len == 0) { | 2948 if (header->name.len == 0) { |
2949 return NGX_ERROR; | 2949 return NGX_ERROR; |
2950 } | 2950 } |
2951 | 2951 |
2952 r->invalid_header = 0; | |
2953 | |
2952 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | 2954 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); |
2953 | 2955 |
2954 for (i = (header->name.data[0] == ':'); i != header->name.len; i++) { | 2956 for (i = (header->name.data[0] == ':'); i != header->name.len; i++) { |
2955 ch = header->name.data[i]; | 2957 ch = header->name.data[i]; |
2956 | 2958 |