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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c
index fe9132df8..b5ecd6d9e 100644
--- a/src/http/modules/ngx_http_stub_status_module.c
+++ b/src/http/modules/ngx_http_stub_status_module.c
@@ -98,7 +98,9 @@ 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;
ngx_str_set(&r->headers_out.content_type, "text/plain");
+ r->headers_out.content_type_lowcase = NULL;
if (r->method == NGX_HTTP_HEAD) {
r->headers_out.status = NGX_HTTP_OK;