Allow serving dotfiles

This commit is contained in:
MICHAEL JACKSON 2017-08-26 19:08:51 -07:00
parent 30de36aa40
commit 5331120a84
1 changed files with 5 additions and 1 deletions

View File

@ -78,9 +78,13 @@ function serveFile(req, res, next) {
}
})
} else {
const options = {
dotfiles: 'allow'
}
res.set({
'Cache-Tag': 'file'
}).sendFile(file, function (error) {
}).sendFile(file, options, function (error) {
if (error) {
console.error(`Cannot send file ${req.packageSpec}${req.filename}`)
console.error(error)