mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Use UTF-8 as the encoding for directory listing.
This commit is contained in:
@@ -1864,7 +1864,7 @@ static void generate_dir_listing(struct connection *conn, const char *path) {
|
|||||||
"Accept-Ranges: bytes\r\n"
|
"Accept-Ranges: bytes\r\n"
|
||||||
"%s" /* keep-alive */
|
"%s" /* keep-alive */
|
||||||
"Content-Length: %llu\r\n"
|
"Content-Length: %llu\r\n"
|
||||||
"Content-Type: text/html\r\n"
|
"Content-Type: text/html; charset=UTF-8\r\n"
|
||||||
"\r\n",
|
"\r\n",
|
||||||
date, server_hdr, keep_alive(conn), llu(conn->reply_length));
|
date, server_hdr, keep_alive(conn), llu(conn->reply_length));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user