aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_stub_status_module.c
diff options
context:
space:
mode:
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;