mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-12 16:59:13 +02:00
updated headers
This commit is contained in:
parent
a0f0879087
commit
9b758dbdba
1 changed files with 6 additions and 3 deletions
|
@ -51,8 +51,11 @@ void RequestFilters::interceptFileType(QWebEngineUrlRequestInfo& info) {
|
|||
QString filename = info.requestUrl().fileName();
|
||||
|
||||
if (isJavaScriptFile(filename) || isEntityFile(filename)) {
|
||||
static const QString CONTENT_HEADER = "Content-Type";
|
||||
static const QString HEADER_VALUE = "text/plain";
|
||||
info.setHttpHeader(CONTENT_HEADER.toLocal8Bit(), HEADER_VALUE.toLocal8Bit());
|
||||
static const QString CONTENT_HEADER = "Accept";
|
||||
static const QString TYPE_VALUE = "text/html";
|
||||
info.setHttpHeader(CONTENT_HEADER.toLocal8Bit(), TYPE_VALUE.toLocal8Bit());
|
||||
static const QString CONTENT_DISPOSITION = "Content-Disposition";
|
||||
static const QString DISPOSITION_VALUE = "inline";
|
||||
info.setHttpHeader(CONTENT_DISPOSITION.toLocal8Bit(), DISPOSITION_VALUE.toLocal8Bit());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue