0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

fix res.sendfile callback

This commit is contained in:
Alex Kocharin 2014-11-13 18:38:49 +03:00
parent c78390752a
commit 09485451f7

View file

@ -41,6 +41,7 @@ module.exports = function(config, auth, storage) {
app.get('/-/static/:filename', function(req, res, next) {
var file = __dirname + '/static/' + req.params.filename
res.sendfile(file, function(err) {
if (!err) return;
if (err.status === 404) {
next()
} else {