diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-04-09 15:42:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-04-09 15:42:08 +0000 |
commit | 183f9a6dce035cd61be251ffcd6540a3fe28b199 (patch) | |
tree | e879b7b7e95c53945b8766f2eda4d6696e64f1b6 /src/http/ngx_http_parse.c | |
parent | e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5 (diff) | |
download | nginx-183f9a6dce035cd61be251ffcd6540a3fe28b199.tar.gz nginx-183f9a6dce035cd61be251ffcd6540a3fe28b199.zip |
nginx-0.0.1-2003-04-09-19:42:08 import
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r-- | src/http/ngx_http_parse.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 15bdb6189..19d599b82 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -405,12 +405,14 @@ int ngx_read_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h) 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; |