diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-14 05:57:36 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-14 05:57:36 +0000 |
commit | a3677248993cddbf6f406dccd313eda8759724fb (patch) | |
tree | 85471aeb0cd73f8ae0deb50e1f4f059522c69245 /src/http/ngx_http_request.c | |
parent | 3d54061602b20fa5a6fdf55b11cb333285d61d03 (diff) | |
download | nginx-a3677248993cddbf6f406dccd313eda8759724fb.tar.gz nginx-a3677248993cddbf6f406dccd313eda8759724fb.zip |
nginx-0.0.3-2004-04-14-09:57:36 import
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 976475e5e..30b3e597e 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -337,6 +337,7 @@ static void ngx_http_process_request_line(ngx_event_t *rev) /* 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 @@ static void ngx_http_process_request_line(ngx_event_t *rev) NGX_HTTP_BAD_REQUEST); return; } +#endif cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); @@ -438,6 +440,10 @@ static void ngx_http_process_request_line(ngx_event_t *rev) 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) { |