comparison src/mail/ngx_mail_auth_http_module.c @ 635:e67b227c8dbb default tip

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:07:55 +0400
parents 8246d8a2c2be
children
comparison
equal deleted inserted replaced
578:f3a9e57d2e17 635:e67b227c8dbb
1407 1407
1408 if (u.family != AF_UNIX) { 1408 if (u.family != AF_UNIX) {
1409 ahcf->host_header = u.host; 1409 ahcf->host_header = u.host;
1410 1410
1411 } else { 1411 } else {
1412 ahcf->host_header.len = sizeof("localhost") - 1; 1412 ngx_str_set(&ahcf->host_header, "localhost");
1413 ahcf->host_header.data = (u_char *) "localhost";
1414 } 1413 }
1415 1414
1416 ahcf->uri = u.uri; 1415 ahcf->uri = u.uri;
1417 1416
1418 if (ahcf->uri.len == 0) { 1417 if (ahcf->uri.len == 0) {
1419 ahcf->uri.len = sizeof("/") - 1; 1418 ngx_str_set(&ahcf->uri, "/");
1420 ahcf->uri.data = (u_char *) "/";
1421 } 1419 }
1422 1420
1423 return NGX_CONF_OK; 1421 return NGX_CONF_OK;
1424 } 1422 }
1425 1423