nginx-0.0.1-2003-04-09-19:42:08 import
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 15bdb61..19d599b 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -405,12 +405,14 @@
break;
}
- if (ch == '/') {
- /* IIS can send duplicate "HTTP/1.1 ..." lines */
- if (r->proxy && ngx_strncmp(r->header_start, "HTTP", 4) == 0) {
- state = sw_ignore_line;
- break;
- }
+ /* IIS can send duplicate "HTTP/1.1 ..." lines */
+ if (ch == '/'
+ && r->proxy
+ && p - r->header_start == 5
+ && ngx_strncmp(r->header_start, "HTTP", 4) == 0)
+ {
+ state = sw_ignore_line;
+ break;
}
return NGX_HTTP_PARSE_INVALID_HEADER;