comparison src/http/modules/ngx_http_proxy_module.c @ 1504:840b81d13a2f stable-0.5

r1340, r1341 merge: fix case when two directives proxy_pass http://backend; proxy_pass https://backend; both use one port - 80 or 443, that was defined first.
author Igor Sysoev <igor@sysoev.ru>
date Sat, 22 Sep 2007 18:44:30 +0000
parents bf5b86d5f00e
children d916a5d7de28
comparison
equal deleted inserted replaced
1503:fa67e7914b70 1504:840b81d13a2f
2235 plcf->host_header = u.host; 2235 plcf->host_header = u.host;
2236 2236
2237 if (port == 80) { 2237 if (port == 80) {
2238 plcf->port.len = sizeof("80") - 1; 2238 plcf->port.len = sizeof("80") - 1;
2239 plcf->port.data = (u_char *) "80"; 2239 plcf->port.data = (u_char *) "80";
2240
2240 } else { 2241 } else {
2241 plcf->port.len = sizeof("443") - 1; 2242 plcf->port.len = sizeof("443") - 1;
2242 plcf->port.data = (u_char *) "443"; 2243 plcf->port.data = (u_char *) "443";
2243 } 2244 }
2244 2245