Klaus Demo nginx / 280e5e7
use "localhost" in "Host" header line, if unix socket is used in "auth_http" Igor Sysoev 11 years ago
1 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
14041404
14051405 ahcf->peer = u.addrs;
14061406
1407 ahcf->host_header = u.host;
1407 if (u.family != AF_UNIX) {
1408 ahcf->host_header = u.host;
1409
1410 } else {
1411 ahcf->host_header.len = sizeof("localhost") - 1;
1412 ahcf->host_header.data = (u_char *) "localhost";
1413 }
1414
14081415 ahcf->uri = u.uri;
14091416
14101417 if (ahcf->uri.len == 0) {