mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix page encoding in IV on macOS.
This commit is contained in:
parent
5133f74f67
commit
5c8e6c3012
2 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ void Controller::createWebview(const QString &dataPath) {
|
||||||
|| index >= _pages.size()) {
|
|| index >= _pages.size()) {
|
||||||
return Webview::DataResult::Failed;
|
return Webview::DataResult::Failed;
|
||||||
}
|
}
|
||||||
return finishWith(WrapPage(_pages[index]), "text/html");
|
return finishWith(WrapPage(_pages[index]), "text/html; charset=utf-8");
|
||||||
} else if (id.starts_with("page") && id.ends_with(".json")) {
|
} else if (id.starts_with("page") && id.ends_with(".json")) {
|
||||||
auto index = 0;
|
auto index = 0;
|
||||||
const auto result = std::from_chars(
|
const auto result = std::from_chars(
|
||||||
|
|
|
@ -708,7 +708,7 @@ void Shown::streamMap(QString params, Webview::DataRequest request) {
|
||||||
void Shown::sendEmbed(QByteArray hash, Webview::DataRequest request) {
|
void Shown::sendEmbed(QByteArray hash, Webview::DataRequest request) {
|
||||||
const auto i = _embeds.find(hash);
|
const auto i = _embeds.find(hash);
|
||||||
if (i != end(_embeds)) {
|
if (i != end(_embeds)) {
|
||||||
requestDone(std::move(request), i->second, "text/html");
|
requestDone(std::move(request), i->second, "text/html; charset=utf-8");
|
||||||
} else {
|
} else {
|
||||||
requestFail(std::move(request));
|
requestFail(std::move(request));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue