From 6ddfbf06625eca15ddf24ac95b755cdc9db32bfa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 15 May 2003 15:42:53 +0000 Subject: nginx-0.0.1-2003-05-15-19:42:53 import --- src/http/ngx_http_parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/http/ngx_http_parse.c') diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index bb6b6fbe2..765da83c8 100644 --- 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_request_t *r) 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; -- cgit v1.2.3