]> git.kaiwu.me - nginx.git/commitdiff
charset could not be set for ngx_http_autoindex_module responses
authorIgor Sysoev <igor@sysoev.ru>
Mon, 13 Nov 2006 20:53:37 +0000 (20:53 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 13 Nov 2006 20:53:37 +0000 (20:53 +0000)
src/http/modules/ngx_http_autoindex_module.c

index f5944c447ff5fb578cd910af8344731eafe23203..e08e63c8f116bce169652e7b7af6e13327cc2e12 100644 (file)
@@ -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";