summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.c b/file.c
index 85487f8..1548900 100644
--- a/file.c
+++ b/file.c
@@ -546,7 +546,8 @@ static void uh_file_dirlist(struct client *cl, struct path_info *pi)
}
uh_file_response_200(cl, NULL);
- ustream_printf(cl->us, "Content-Type: text/html\r\n\r\n");
+ ustream_printf(cl->us, "Content-Type: text/html; charset=%s\r\n\r\n",
+ conf.dirlist_charset ? conf.dirlist_charset : "UTF-8");
uh_chunk_printf(cl,
"<html><head><title>Index of %s</title></head>"