From a1c8a92566ab0bbb8c58c06038474670aca52407 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 19 Jan 2004 18:09:14 +0000 Subject: nginx-0.0.1-2004-01-19-21:09:14 import --- src/http/ngx_http_request.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 256a41aae..8679ee787 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -493,6 +493,10 @@ static void ngx_http_process_request_line(ngx_event_t *rev) 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: -- cgit