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
|
||||
-----
|
||||
|
||||
* 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::
|
||||
|
|
|
@ -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');
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue