diff --git a/lib/filehandler.js b/lib/filehandler.js index 3b6b625..c9a54e8 100644 --- a/lib/filehandler.js +++ b/lib/filehandler.js @@ -16,7 +16,8 @@ module.exports = function (middleware, options) { ? 'application/json' : 'text/plain' }); - res.json(200, result); + res.files = result; + next; } });