aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-15 09:31:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-15 09:31:19 +0000
commitda7b5e15de6475c0acc6de770df3807c6324d0b2 (patch)
tree1c7e6c13075abb502ba1078876304e5c1b985905 /src/http/ngx_http_request.c
parentd50e53e6754089fc2cd599761f9390d4aa712673 (diff)
downloadnginx-da7b5e15de6475c0acc6de770df3807c6324d0b2.tar.gz
nginx-da7b5e15de6475c0acc6de770df3807c6324d0b2.zip
allow spaces in URI
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index dbc92cf52..651cda7e0 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -756,6 +756,7 @@ ngx_http_process_request_line(ngx_event_t *rev)
r->unparsed_uri.len = r->uri_end - r->uri_start;
r->unparsed_uri.data = r->uri_start;
+ r->valid_unparsed_uri = r->space_in_uri ? 0 : 1;
r->method_name.len = r->method_end - r->request_start + 1;
r->method_name.data = r->request_line.data;