summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-21 18:54:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-21 18:54:33 +0000
commit732a27196381164c799d345ec0d010b416408555 (patch)
tree043848398927223e1b08d1b15c071b3a23717d76 /src/http/ngx_http_parse.c
parentbb570859043557c5c1b20d933ff2e4c18d13c980 (diff)
downloadnginx-732a27196381164c799d345ec0d010b416408555.tar.gz
nginx-732a27196381164c799d345ec0d010b416408555.tar.bz2
nginx-0.0.3-2004-04-21-22:54:33 import
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r--src/http/ngx_http_parse.c4
1 files changed, 4 insertions, 0 deletions
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;
}