From c15e14e9d1fc9042c53d782dcdfeed1bea5a10d8 Mon Sep 17 00:00:00 2001 From: Alexey Andreyev Date: Sat, 25 Mar 2023 01:09:27 +0300 Subject: AboutHandler: improve cache request generation Specify Utf8 encoding for cache information header --- src/protocols/abouthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols') diff --git a/src/protocols/abouthandler.cpp b/src/protocols/abouthandler.cpp index 999de87..ebd5c9f 100644 --- a/src/protocols/abouthandler.cpp +++ b/src/protocols/abouthandler.cpp @@ -52,7 +52,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions else if (url.path() == "cache") { QByteArray document; - document.append(tr("# Cache information\n")); + document.append(QString(tr("# Cache information\n")).toUtf8()); auto& cache = kristall::globals().cache.getPages(); long unsigned cache_usage = 0; -- cgit v1.2.3