charset could not be set for ngx_http_autoindex_module responses

This commit is contained in:
Igor Sysoev 2006-11-13 20:53:37 +00:00
parent 12c94ae212
commit 81188729e6

View 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";