1
0
Fork 0

Bug fix/issue 4657 (#4706)

* fixed incomplete content type header

* changelog
This commit is contained in:
Heiko 2018-03-01 16:47:54 +01:00 committed by Max Neunhöffer
parent b7d09bcdc4
commit 663d98c99f
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
devel
-----
* fix issue #4657: fixed incomplete content type header
* Behaviour of permissions for databases and collections changed:
The new fallback rule for databases for which an access level is not explicitly specified:
Choose the higher access level of::

View File

@ -51,11 +51,11 @@ router.get('/index.html', (req, res) => {
if (encoding && encoding.indexOf('gzip') >= 0) {
// gzip-encode?
res.set('Content-Encoding', 'gzip');
res.set('Content-Type', 'text/html');
res.sendFile(module.context.fileName('frontend/build/index-min.html.gz'));
} else {
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-XSS-Protection', '1; mode=block');
})