Klaus Demo nginx / 3c84e4b
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
911911 i = 1;
912912
913913 } else {
914 hash = 0;
915 i = 0;
914916 r->invalid_header = 1;
915917 }
916918
921923 return NGX_HTTP_PARSE_INVALID_HEADER;
922924 }
923925
926 hash = 0;
927 i = 0;
924928 r->invalid_header = 1;
925929
926930 break;