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:
parent
c78390752a
commit
09485451f7
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue