Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 314:d71c87d11b16
nginx-0.0.3-2004-04-14-09:57:36 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Apr 2004 05:57:36 +0000 |
parents | 98f1a8028067 |
children | ba876b26b76d |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Tue Apr 13 15:08:48 2004 +0000 +++ b/src/http/ngx_http_request.c Wed Apr 14 05:57:36 2004 +0000 @@ -337,6 +337,7 @@ /* the request line has been parsed successfully */ +#if 0 /* TODO: we need to handle proxy URIs */ if (r->unusual_uri) { r->request_line.len = r->request_end - r->request_start; @@ -349,6 +350,7 @@ NGX_HTTP_BAD_REQUEST); return; } +#endif cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); @@ -438,6 +440,10 @@ r->request_line.data[r->request_line.len] = '\0'; } + if (r->method == 0) { + r->method_name.len = r->method_end - r->request_start + 1; + r->method_name.data = r->request_line.data; + } if (r->uri_ext) {