use "localhost" in "Host" header line, if unix socket is used in "auth_http"
Igor Sysoev
11 years ago
1404 | 1404 | |
1405 | 1405 | ahcf->peer = u.addrs; |
1406 | 1406 | |
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 | ||
1408 | 1415 | ahcf->uri = u.uri; |
1409 | 1416 | |
1410 | 1417 | if (ahcf->uri.len == 0) { |