Поправки Content-Type

This commit is contained in:
Book Pauk
2020-05-21 04:36:03 +07:00
parent 8ab6aed1aa
commit 4e7ed1ee33
4 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ async function main() {
maxAge: '30d',
setHeaders: (res, filePath) => {
if (path.basename(path.dirname(filePath)) == 'tmp') {
res.set('Content-Type', 'text/xml');
res.set('Content-Type', 'application/xml');
res.set('Content-Encoding', 'gzip');
}
}