summaryrefslogtreecommitdiffhomepage
path: root/src/mail/ngx_mail_auth_http_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
commit05b1a8f1e3595beab4397e25c2a6db9d832a6a97 (patch)
tree282923e87cbaf9d634dab4a7c69ce85d602effcf /src/mail/ngx_mail_auth_http_module.c
parent328df7a5cc91180fef3b1b58129e14bc79bef80b (diff)
downloadnginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz
nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.bz2
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/mail/ngx_mail_auth_http_module.c')
-rw-r--r--src/mail/ngx_mail_auth_http_module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c
index b9f963578..d54a392ac 100644
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -1409,15 +1409,13 @@ ngx_mail_auth_http(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ahcf->host_header = u.host;
} else {
- ahcf->host_header.len = sizeof("localhost") - 1;
- ahcf->host_header.data = (u_char *) "localhost";
+ ngx_str_set(&ahcf->host_header, "localhost");
}
ahcf->uri = u.uri;
if (ahcf->uri.len == 0) {
- ahcf->uri.len = sizeof("/") - 1;
- ahcf->uri.data = (u_char *) "/";
+ ngx_str_set(&ahcf->uri, "/");
}
return NGX_CONF_OK;