Fixed header parsing with ignore_invalid_headers switched off. The parsing was broken when the first character of the header name was invalid. Based on a patch by Alan Kemp.
Ruslan Ermilov
2 years ago
1 changed file(s) with
4 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+4
-0
src/http/ngx_http_parse.c
less
more
911
911
i = 1;
912
912
913
913
} else {
914
hash = 0;
915
i = 0;
914
916
r->invalid_header = 1;
915
917
}
916
918
921
923
return NGX_HTTP_PARSE_INVALID_HEADER;
922
924
}
923
925
926
hash = 0;
927
i = 0;
924
928
r->invalid_header = 1;
925
929
926
930
break;