Mercurial > hg > nginx
diff src/http/modules/ngx_http_autoindex_module.c @ 842:d8e2613a2b55
charset could not be set for ngx_http_autoindex_module responses
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 13 Nov 2006 20:53:37 +0000 |
parents | c3ebeee31026 |
children | 090e391f53db |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_autoindex_module.c Mon Nov 13 20:40:17 2006 +0000 +++ b/src/http/modules/ngx_http_autoindex_module.c Mon Nov 13 20:53:37 2006 +0000 @@ -229,6 +229,7 @@ } 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";