Add '<meta charset="utf-8"/>' to the html header

I think most non-English user would need it to fix error encoding in displaying
file name in the web page.
This commit is contained in:
Stephen Zhang 2015-12-28 14:41:54 +08:00 committed by Emil Mikulic
parent 853a6af62d
commit 26785ceafe

View File

@ -1733,7 +1733,7 @@ static void generate_dir_listing(struct connection *conn, const char *path) {
}
listing = make_apbuf();
append(listing, "<html>\n<head>\n <title>");
append(listing, "<html>\n<head>\n<meta charset=\"utf-8\"/>\n<title>");
append(listing, conn->url);
append(listing, "</title>\n</head>\n<body>\n<h1>");
append(listing, conn->url);