Skip to content

Commit b5081f7

Browse files
Evans, CameronEvans, Cameron
authored andcommitted
prevent default res.send
1 parent efe6040 commit b5081f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/filehandler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module.exports = function (middleware, options) {
1616
? 'application/json'
1717
: 'text/plain'
1818
});
19-
res.json(200, result);
19+
res.files = result;
20+
next;
2021
}
2122
});
2223

0 commit comments

Comments
 (0)