Tidy up UTF-8 after merge.

This commit is contained in:
Emil Mikulic 2016-01-13 20:04:29 +11:00
parent 4d34abd3c9
commit 955762645d

View File

@ -1470,7 +1470,7 @@ static void default_reply(struct connection *conn,
"Accept-Ranges: bytes\r\n"
"%s" /* keep-alive */
"Content-Length: %llu\r\n"
"Content-Type: text/html; charset=utf-8\r\n"
"Content-Type: text/html; charset=UTF-8\r\n"
"\r\n",
errcode, errname, date, server_hdr, keep_alive(conn),
llu(conn->reply_length));
@ -1509,7 +1509,7 @@ static void redirect(struct connection *conn, const char *format, ...) {
"Location: %s\r\n"
"%s" /* keep-alive */
"Content-Length: %llu\r\n"
"Content-Type: text/html; charset=utf-8\r\n"
"Content-Type: text/html; charset=UTF-8\r\n"
"\r\n",
date, server_hdr, where, keep_alive(conn), llu(conn->reply_length));
@ -1810,7 +1810,7 @@ static void generate_dir_listing(struct connection *conn, const char *path) {
}
listing = make_apbuf();
append(listing, "<html>\n<head>\n<meta charset=\"utf-8\"/>\n<title>");
append(listing, "<html>\n<head>\n <title>");
append(listing, conn->url);
append(listing, "</title>\n</head>\n<body>\n<h1>");
append(listing, conn->url);