From: Christian Hofstaedtler Date: Wed, 21 Aug 2013 10:30:12 +0000 (+0200) Subject: 'correct' casing of Content-Type header in error messages X-Git-Tag: rec-3.6.0-rc1~508^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e24e563c45afc9b880d19faaccc328884869f88e;p=thirdparty%2Fpdns.git 'correct' casing of Content-Type header in error messages --- diff --git a/pdns/webserver.cc b/pdns/webserver.cc index 97b6fa1d34..7ebce4d4af 100644 --- a/pdns/webserver.cc +++ b/pdns/webserver.cc @@ -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("

Did not find file '"+baseUrl+"'\n"); }