nginx-0.0.1-2003-05-15-19:42:53 import
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index bb6b6fb..765da83 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -314,12 +314,12 @@
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;