Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 72:66de3f065886
nginx-0.0.1-2003-04-09-19:42:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 09 Apr 2003 15:42:08 +0000 |
parents | 59229033ae93 |
children | 3973260705cc |
comparison
equal
deleted
inserted
replaced
71:59229033ae93 | 72:66de3f065886 |
---|---|
403 | 403 |
404 if (ch >= '0' && ch <= '9') { | 404 if (ch >= '0' && ch <= '9') { |
405 break; | 405 break; |
406 } | 406 } |
407 | 407 |
408 if (ch == '/') { | 408 /* IIS can send duplicate "HTTP/1.1 ..." lines */ |
409 /* IIS can send duplicate "HTTP/1.1 ..." lines */ | 409 if (ch == '/' |
410 if (r->proxy && ngx_strncmp(r->header_start, "HTTP", 4) == 0) { | 410 && r->proxy |
411 state = sw_ignore_line; | 411 && p - r->header_start == 5 |
412 break; | 412 && ngx_strncmp(r->header_start, "HTTP", 4) == 0) |
413 } | 413 { |
414 state = sw_ignore_line; | |
415 break; | |
414 } | 416 } |
415 | 417 |
416 return NGX_HTTP_PARSE_INVALID_HEADER; | 418 return NGX_HTTP_PARSE_INVALID_HEADER; |
417 | 419 |
418 /* space* before header value */ | 420 /* space* before header value */ |