summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_stub_status_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/http/modules/ngx_http_stub_status_module.c
parent328df7a5cc91180fef3b1b58129e14bc79bef80b (diff)
downloadnginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz
nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.bz2
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/http/modules/ngx_http_stub_status_module.c')
-rw-r--r--src/http/modules/ngx_http_stub_status_module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c
index 9d2d074b2..4b74eb884 100644
--- a/src/http/modules/ngx_http_stub_status_module.c
+++ b/src/http/modules/ngx_http_stub_status_module.c
@@ -75,8 +75,7 @@ static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r)
return rc;
}
- r->headers_out.content_type.len = sizeof("text/plain") - 1;
- r->headers_out.content_type.data = (u_char *) "text/plain";
+ ngx_str_set(&r->headers_out.content_type, "text/plain");
if (r->method == NGX_HTTP_HEAD) {
r->headers_out.status = NGX_HTTP_OK;