summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-07 10:01:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-07 10:01:26 +0000
commita544b2ee9858675c05d98330310b4f571ab21c66 (patch)
treec5b6986721ceb028e45217570e5f016ea18c267c /src/http/ngx_http_request.c
parent0ac11cd241b2e075eee84f6fd3967fa2b13d9694 (diff)
downloadnginx-a544b2ee9858675c05d98330310b4f571ab21c66.tar.gz
nginx-a544b2ee9858675c05d98330310b4f571ab21c66.tar.bz2
merge r2980, r2981, r2982:
win32 fixes: *) ngx_http_set_exten() is always successful since 0.3.46 *) skip URI trailing dots under Win32 *) use caseless regex locations on caseless filesystems: MacOSX, Win32, Cygwin
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 b108394bf..837434b4d 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -763,6 +763,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);