mirror of https://gitee.com/bigwinds/arangodb
Bug fix/issue 4657 (#4706)
* fixed incomplete content type header * changelog
This commit is contained in:
parent
b7d09bcdc4
commit
663d98c99f
|
@ -1,6 +1,8 @@
|
||||||
devel
|
devel
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* fix issue #4657: fixed incomplete content type header
|
||||||
|
|
||||||
* Behaviour of permissions for databases and collections changed:
|
* Behaviour of permissions for databases and collections changed:
|
||||||
The new fallback rule for databases for which an access level is not explicitly specified:
|
The new fallback rule for databases for which an access level is not explicitly specified:
|
||||||
Choose the higher access level of::
|
Choose the higher access level of::
|
||||||
|
|
|
@ -51,11 +51,11 @@ router.get('/index.html', (req, res) => {
|
||||||
if (encoding && encoding.indexOf('gzip') >= 0) {
|
if (encoding && encoding.indexOf('gzip') >= 0) {
|
||||||
// gzip-encode?
|
// gzip-encode?
|
||||||
res.set('Content-Encoding', 'gzip');
|
res.set('Content-Encoding', 'gzip');
|
||||||
res.set('Content-Type', 'text/html');
|
|
||||||
res.sendFile(module.context.fileName('frontend/build/index-min.html.gz'));
|
res.sendFile(module.context.fileName('frontend/build/index-min.html.gz'));
|
||||||
} else {
|
} else {
|
||||||
res.sendFile(module.context.fileName('frontend/build/index-min.html'));
|
res.sendFile(module.context.fileName('frontend/build/index-min.html'));
|
||||||
}
|
}
|
||||||
|
res.set('Content-Type', 'text/html; charset=utf-8');
|
||||||
res.set('X-Frame-Options', 'DENY');
|
res.set('X-Frame-Options', 'DENY');
|
||||||
res.set('X-XSS-Protection', '1; mode=block');
|
res.set('X-XSS-Protection', '1; mode=block');
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue