diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-02-14 18:51:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-02-14 18:51:19 +0000 |
commit | 722231f40788d1243bf302227ed7b6fdfeaea492 (patch) | |
tree | f408767af10da88546a8d2b518601aef67ffdfb0 /src/http/modules/ngx_http_proxy_module.c | |
parent | 0ddd9d6e5ebe8cf3fddaf5f017992f0740dd7996 (diff) | |
download | nginx-722231f40788d1243bf302227ed7b6fdfeaea492.tar.gz nginx-722231f40788d1243bf302227ed7b6fdfeaea492.zip |
ngx_strcasecmp()/ngx_strncasecmp()
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 63ee8fd80..cbd2ce8e0 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -2111,11 +2111,11 @@ ngx_http_proxy_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) url = &value[1]; - if (ngx_strncasecmp(url->data, "http://", 7) == 0) { + if (ngx_strncasecmp(url->data, (u_char *) "http://", 7) == 0) { add = 7; port = 80; - } else if (ngx_strncasecmp(url->data, "https://", 8) == 0) { + } else if (ngx_strncasecmp(url->data, (u_char *) "https://", 8) == 0) { #if (NGX_HTTP_SSL) |