diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-05-15 15:42:53 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-05-15 15:42:53 +0000 |
commit | 6ddfbf06625eca15ddf24ac95b755cdc9db32bfa (patch) | |
tree | fdf4cccdd271b3fce401cff82c911aeb2a390703 /src/http/ngx_http_parse.c | |
parent | 79a804880ee362a1256e6e8aeadb73f7f5cf0885 (diff) | |
download | nginx-6ddfbf06625eca15ddf24ac95b755cdc9db32bfa.tar.gz nginx-6ddfbf06625eca15ddf24ac95b755cdc9db32bfa.zip |
nginx-0.0.1-2003-05-15-19:42:53 import
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; |