]> granicus.if.org Git - pdns/commitdiff
'correct' casing of Content-Type header in error messages
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 21 Aug 2013 10:30:12 +0000 (12:30 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 21 Aug 2013 18:25:50 +0000 (20:25 +0200)
pdns/webserver.cc

index 97b6fa1d348a3790d4dd40a251eb7372e35ed95d..7ebce4d4afd956c20f82e0f372ba3a0adac983f0 100644 (file)
@@ -143,7 +143,7 @@ void *WebServer::serveConnection(void *p)
       client->putLine("WWW-Authenticate: Basic realm=\"PowerDNS\"\n");
       
       client->putLine("Connection: close\n");
-      client->putLine("Content-type: text/html; charset=UTF-8\n\n");
+      client->putLine("Content-Type: text/html; charset=utf-8\n\n");
       client->putLine("Please enter a valid password!\n");
       client->close();
       delete client;
@@ -158,14 +158,14 @@ void *WebServer::serveConnection(void *p)
       if(!custom) {
         client->putLine("HTTP/1.1 200 OK\n");
         client->putLine("Connection: close\n");
-        client->putLine("Content-type: text/html; charset=UTF-8\n\n");
+        client->putLine("Content-Type: text/html; charset=utf-8\n\n");
       }
       client->putLine(ret);
     }
     else {
       client->putLine("HTTP/1.1 404 Not found\n");
       client->putLine("Connection: close\n");
-      client->putLine("Content-type: text/html; charset=UTF-8\n\n");
+      client->putLine("Content-Type: text/html; charset=utf-8\n\n");
       // FIXME: CSS problem?
       client->putLine("<html><body><h1>Did not find file '"+baseUrl+"'</body></html>\n");
     }