Mercurial > hg > nginx
comparison src/mail/ngx_mail_auth_http_module.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | a2a5812cf4f4 |
children | 4af8ea9c3a86 |
comparison
equal
deleted
inserted
replaced
3515:76d252724db5 | 3516:dd1570b6f237 |
---|---|
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 |