summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-11-13 20:53:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-11-13 20:53:37 +0000
commit81188729e61ded55ea1b9c949fcb5c4e0c9fa23d (patch)
treede8aa65fb006b96feefbe3b06c920fa3c3955fa0
parent12c94ae21241790103497a11d1e70bca0fe02eb0 (diff)
downloadnginx-81188729e61ded55ea1b9c949fcb5c4e0c9fa23d.tar.gz
nginx-81188729e61ded55ea1b9c949fcb5c4e0c9fa23d.tar.bz2
charset could not be set for ngx_http_autoindex_module responses
-rw-r--r--src/http/modules/ngx_http_autoindex_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
index f5944c447..e08e63c8f 100644
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -229,6 +229,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
}
r->headers_out.status = NGX_HTTP_OK;
+ r->headers_out.content_type_len = sizeof("text/html") - 1;
r->headers_out.content_type.len = sizeof("text/html") - 1;
r->headers_out.content_type.data = (u_char *) "text/html";