diff src/http/ngx_http_core_module.c @ 2981:635c0006441e

use caseless regex locations on caseless filesystems: MacOSX, Win32, Cygwin
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Jul 2009 08:53:37 +0000
parents b941147f2b2e
children 67254117b774
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2566,6 +2566,10 @@ ngx_http_core_regex_location(ngx_conf_t 
     err.len = NGX_MAX_CONF_ERRSTR;
     err.data = errstr;
 
+#if (NGX_HAVE_CASELESS_FILESYSTEM)
+    caseless = 1;
+#endif
+
     clcf->regex = ngx_regex_compile(regex, caseless ? NGX_REGEX_CASELESS: 0,
                                     cf->pool, &err);