mirror of
https://github.com/nginx/nginx.git
synced 2026-08-31 09:06:25 +00:00
charset could not be set for ngx_http_autoindex_module responses
This commit is contained in:
parent
12c94ae212
commit
81188729e6
1 changed files with 1 additions and 0 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue