summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c')
-rw-r--r--usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c b/usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c
index 1eecfbe689c..f694df075db 100644
--- a/usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c
+++ b/usr.sbin/nginx/src/http/modules/ngx_http_autoindex_module.c
@@ -233,6 +233,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;
ngx_str_set(&r->headers_out.content_type, "text/html");
+ r->headers_out.content_type_lowcase = NULL;
rc = ngx_http_send_header(r);
@@ -357,7 +358,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
if (ngx_close_dir(&dir) == NGX_ERROR) {
ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
- ngx_close_dir_n " \"%s\" failed", &path);
+ ngx_close_dir_n " \"%V\" failed", &path);
}
escape_html = ngx_escape_html(NULL, r->uri.data, r->uri.len);