mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
charset could not be set for ngx_http_autoindex_module responses
This commit is contained in:
parent
12c94ae212
commit
81188729e6
@ -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…
Reference in New Issue
Block a user