Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 233:4eaafcd57be7
nginx-0.0.1-2004-01-19-21:09:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 19 Jan 2004 18:09:14 +0000 |
parents | 03c54b6d7a6f |
children | 574bea0142be |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Sun Jan 18 21:09:21 2004 +0000 +++ b/src/http/ngx_http_request.c Mon Jan 19 18:09:14 2004 +0000 @@ -493,6 +493,10 @@ r->request_line.len = p - r->request_start; r->request_line.data = r->request_start; + if (rc == NGX_HTTP_PARSE_INVALID_METHOD) { + r->http_version = NGX_HTTP_VERSION_10; + } + ngx_http_client_error(r, rc, (rc == NGX_HTTP_PARSE_INVALID_METHOD) ? NGX_HTTP_NOT_IMPLEMENTED: