mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-21 02:51:26 -04:00
Merge pull request #55 from kiwix/workaround_contenttype
Workaroud the contentType handling of QTWebEngine.
This commit is contained in:
commit
a12e641667
@ -47,6 +47,7 @@ UrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *request)
|
||||
}
|
||||
BlobBuffer* buffer = new BlobBuffer(entry.getBlob());
|
||||
auto mimeType = QByteArray::fromStdString(entry.getMimetype());
|
||||
mimeType = mimeType.split(';')[0];
|
||||
connect(buffer, &QIODevice::aboutToClose, buffer, &QObject::deleteLater);
|
||||
request->reply(mimeType, buffer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user