Tidy up UTF-8 after merge.
authorEmil Mikulic <emikulic@gmail.com>
Wed, 13 Jan 2016 09:04:29 +0000 (20:04 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Wed, 13 Jan 2016 09:04:29 +0000 (20:04 +1100)
darkhttpd.c

index c53ae8e..3dde728 100644 (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);