diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-01-28 14:09:28 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-01-28 14:09:28 +0000 |
commit | 77860d74a56774e25e9beae66878489027a4abe3 (patch) | |
tree | 050cc6c106da465d96ea2536f3f3721af103d462 /src/http/ngx_http_request.c | |
parent | 918ef947da4c809d1b87f284070ab7b19645ab9d (diff) | |
download | nginx-77860d74a56774e25e9beae66878489027a4abe3.tar.gz nginx-77860d74a56774e25e9beae66878489027a4abe3.zip |
skip URI trailing spaces under Win32
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 63eccf177..9ca19f556 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -788,9 +788,11 @@ ngx_http_process_request_line(ngx_event_t *rev) p = r->uri.data + r->uri.len - 1; - if (*p == '.') { + if (*p == '.' || *p == ' ') { - while (--p > r->uri.data && *p == '.') { /* void */ } + while (--p > r->uri.data && (*p == '.' || *p == ' ')) { + /* void */ + } r->uri.len = p + 1 - r->uri.data; |