diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-07-14 08:51:20 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-07-14 08:51:20 +0000 |
commit | 2376d6082ab407a68619bfeb753c825e30617e2d (patch) | |
tree | 6fbed06cb0796d7aeccae9da4b285f45dde14b52 /src/http/ngx_http_request.c | |
parent | c28d6325958a7d42849466054798ee01f31d8330 (diff) | |
download | nginx-2376d6082ab407a68619bfeb753c825e30617e2d.tar.gz nginx-2376d6082ab407a68619bfeb753c825e30617e2d.zip |
skip URI trailing dots under Win32
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index d60384fe1..cc75939e6 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -766,6 +766,22 @@ ngx_http_process_request_line(ngx_event_t *rev) r->args.data = r->args_start; } +#if (NGX_WIN32) + { + u_char *p; + + p = r->uri.data + r->uri.len - 1; + + if (*p == '.') { + + while (--p > r->uri.data && *p == '.') { /* void */ } + + r->uri.len = p + 1 - r->uri.data; + + ngx_http_set_exten(r); + } + } +#endif ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "http request line: \"%V\"", &r->request_line); |