diff --git a/src/webui/httpconnection.cpp b/src/webui/httpconnection.cpp index be975394e..092b749e2 100644 --- a/src/webui/httpconnection.cpp +++ b/src/webui/httpconnection.cpp @@ -193,6 +193,7 @@ void HttpConnection::respond() { if (nb_fail >= MAX_AUTH_FAILED_ATTEMPTS) { m_generator.setStatusLine(403, "Forbidden"); m_generator.setMessage(tr("Your IP address has been banned after too many failed authentication attempts.")); + m_generator.setContentType("text/plain; charset=utf-8"); m_generator.setContentEncoding(m_parser.acceptsEncoding()); write(); return;