AboutHandler: improve cache request generation

Specify Utf8 encoding for cache information header
This commit is contained in:
Alexey Andreyev 2023-03-25 01:09:27 +03:00 committed by Felix Queißner
parent d88dd7bfd1
commit c15e14e9d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;