explicitly undefined dotfiles, with note

This commit is contained in:
AJ ONeal 2015-12-12 03:43:31 +00:00
parent 841d6b3948
commit dfcd5543ea
1 changed files with 2 additions and 1 deletions

View File

@ -98,8 +98,9 @@ function loadPages(pkgConf, route, req, res, next) {
//console.log('[static mount]', pkgpath);
// https://github.com/expressjs/serve-static/issues/54
// https://github.com/pillarjs/send/issues/91
// https://example.com/.well-known/acme-challenge/xxxxxxxxxxxxxxx
staticServer = require('serve-static')(pkgpath, { dotfiles: 'allow' });
staticServer = require('serve-static')(pkgpath, { dotfiles: undefined });
resolve(staticServer);
});
});