diff --git a/lib/index-web.js b/lib/index-web.js index 5a598a3ac..9e1dfbfc1 100644 --- a/lib/index-web.js +++ b/lib/index-web.js @@ -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 {