mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 04:28:07 +02:00
Merge pull request #14637 from howard-stearns/data-url-for-web-entity
data url for web entity
This commit is contained in:
commit
3faf12b141
2 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@ WebEntityRenderer::ContentType WebEntityRenderer::getContentType(const QString&
|
|||
const QUrl url(urlString);
|
||||
auto scheme = url.scheme();
|
||||
if (scheme == HIFI_URL_SCHEME_ABOUT || scheme == HIFI_URL_SCHEME_HTTP || scheme == HIFI_URL_SCHEME_HTTPS ||
|
||||
scheme == URL_SCHEME_DATA ||
|
||||
urlString.toLower().endsWith(".htm") || urlString.toLower().endsWith(".html")) {
|
||||
return ContentType::HtmlContent;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace NetworkingConstants {
|
|||
const QString HIFI_URL_SCHEME_ABOUT = "about";
|
||||
const QString URL_SCHEME_HIFI = "hifi";
|
||||
const QString URL_SCHEME_HIFIAPP = "hifiapp";
|
||||
const QString URL_SCHEME_DATA = "data";
|
||||
const QString URL_SCHEME_QRC = "qrc";
|
||||
const QString HIFI_URL_SCHEME_FILE = "file";
|
||||
const QString HIFI_URL_SCHEME_HTTP = "http";
|
||||
|
|
Loading…
Reference in a new issue