-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qt: force text/html as the mimetype for index.html
Fixes #3061. Without this, on linux the local mimetype database (influenced by various packages installed on the system) can mess with the mimetype resolution of our .html file served locally, resulting in a blank page. Notably, FireFox on linux sets application/x-extension-html as the mimetype for .html files when made the default browser. This problem is new in Qt 6, on Qt 5.15 it worked fine for some reason. The general solution is to hardcode mime-types in a custom url scheme handler, but that requires using a different scheme to `qrc:`, which we can't do right now as Moonpay whitelisted only `qrc:`.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters