Mercurial > hg > nginx
diff src/http/ngx_http_parse.c @ 89:29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 May 2003 15:42:53 +0000 |
parents | 3973260705cc |
children | 637625a2acdb |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -314,12 +314,12 @@ int ngx_parse_http_request_line(ngx_http r->http_version = r->http_major * 1000 + r->http_minor; r->state = sw_start; - if (r->http_version == 9 && r->method == NGX_HTTP_HEAD) { - return NGX_HTTP_PARSE_INVALID_HEAD; - } else { - return NGX_OK; + if (r->http_version == 9 && r->method != NGX_HTTP_GET) { + return NGX_HTTP_PARSE_INVALID_09_METHOD; } + return NGX_OK; + } else { r->state = state; return NGX_AGAIN;