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 +++ b/src/http/ngx_http_request.c @@ -493,6 +493,10 @@ static void ngx_http_process_request_lin 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: