From 732a27196381164c799d345ec0d010b416408555 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 21 Apr 2004 18:54:33 +0000 Subject: nginx-0.0.3-2004-04-21-22:54:33 import --- src/http/ngx_http_parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_parse.c') diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 33bc23759..381ee57e0 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -46,6 +46,10 @@ ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r) case sw_start: r->request_start = p - 1; + if (ch == CR || ch == LF) { + break; + } + if (ch < 'A' || ch > 'Z') { return NGX_HTTP_PARSE_INVALID_METHOD; } -- cgit