summaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-07-20 08:24:37 +0000
committerJonathan Kolb <jon@b0g.us>2009-07-20 08:24:37 +0000
commit328c1b07602f323a20a2c200892b05578e30623b (patch)
tree0980dad783e2e77fe84c36c262b81a6d20cfb96e /src/http/ngx_http_request.c
parentccb71228cbec260e8921e698a34c57da5b0693cd (diff)
downloadnginx-328c1b07602f323a20a2c200892b05578e30623b.tar.gz
Changes with nginx 0.8.6 20 Jul 2009v0.8.6
*) Feature: the ngx_http_geoip_module. *) Bugfix: XSLT filter may fail with message "not well formed XML document" for valid XML document. Thanks to Kuramoto Eiji. *) Bugfix: now in MacOSX, Cygwin, and nginx/Windows locations given by a regular expression are always tested in case insensitive mode; *) Bugfix: now nginx/Windows ignores trailing dots in URI. Thanks to Hugo Leisink. *) Bugfix: name of file specified in --conf-path was not honored during installation; the bug had appeared in 0.6.6. Thanks to Maxim Dounin.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c16
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);