mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
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:
parent
853a6af62d
commit
26785ceafe
@ -1733,7 +1733,7 @@ static void generate_dir_listing(struct connection *conn, const char *path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
listing = make_apbuf();
|
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, conn->url);
|
||||||
append(listing, "</title>\n</head>\n<body>\n<h1>");
|
append(listing, "</title>\n</head>\n<body>\n<h1>");
|
||||||
append(listing, conn->url);
|
append(listing, conn->url);
|
||||||
|
Loading…
Reference in New Issue
Block a user