Use UTF-8 as the encoding for directory listing.

This commit is contained in:
Hugh Wang 2015-12-20 22:49:14 +08:00 committed by Emil Mikulic
parent 72159c5010
commit 4edc50c42f
1 changed files with 1 additions and 1 deletions

View File

@ -1864,7 +1864,7 @@ static void generate_dir_listing(struct connection *conn, const char *path) {
"Accept-Ranges: bytes\r\n"
"%s" /* keep-alive */
"Content-Length: %llu\r\n"
"Content-Type: text/html\r\n"
"Content-Type: text/html; charset=UTF-8\r\n"
"\r\n",
date, server_hdr, keep_alive(conn), llu(conn->reply_length));