comparison src/http/modules/ngx_http_proxy_module.c @ 1107:db7c468c447d

ngx_strcasecmp()/ngx_strncasecmp()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Feb 2007 18:51:19 +0000
parents 065b39794fff
children 2d978e1443ed
comparison
equal deleted inserted replaced
1106:2c7fed12fab7 1107:db7c468c447d
2109 2109
2110 value = cf->args->elts; 2110 value = cf->args->elts;
2111 2111
2112 url = &value[1]; 2112 url = &value[1];
2113 2113
2114 if (ngx_strncasecmp(url->data, "http://", 7) == 0) { 2114 if (ngx_strncasecmp(url->data, (u_char *) "http://", 7) == 0) {
2115 add = 7; 2115 add = 7;
2116 port = 80; 2116 port = 80;
2117 2117
2118 } else if (ngx_strncasecmp(url->data, "https://", 8) == 0) { 2118 } else if (ngx_strncasecmp(url->data, (u_char *) "https://", 8) == 0) {
2119 2119
2120 #if (NGX_HTTP_SSL) 2120 #if (NGX_HTTP_SSL)
2121 2121
2122 add = 8; 2122 add = 8;
2123 port = 443; 2123 port = 443;