]> git.kaiwu.me - nginx.git/commitdiff
fix building by msvc
authorIgor Sysoev <igor@sysoev.ru>
Sat, 5 May 2007 05:40:29 +0000 (05:40 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 5 May 2007 05:40:29 +0000 (05:40 +0000)
src/http/modules/ngx_http_rewrite_module.c

index 1b660c3080b1b437d8bcefa954314edb36495652..a5b96f8fd66b20b6e1c54bcdabc34254c22f727f 100644 (file)
@@ -936,9 +936,9 @@ ngx_http_rewrite_set(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
     }
 
     if (v->get_handler == NULL
-        && ngx_strncasecmp(value[1].data, "http_", 5) != 0
-        && ngx_strncasecmp(value[1].data, "sent_http_", 10) != 0
-        && ngx_strncasecmp(value[1].data, "upstream_http_", 14) != 0)
+        && ngx_strncasecmp(value[1].data, (u_char *) "http_", 5) != 0
+        && ngx_strncasecmp(value[1].data, (u_char *) "sent_http_", 10) != 0
+        && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0)
     {
         v->get_handler = ngx_http_rewrite_var;
         v->data = index;