diff options
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r-- | src/http/ngx_http_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |