Skip to content

Commit 0d6606f

Browse files
committed
add req & res
1 parent bc9c42a commit 0d6606f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/filehandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (middleware, options) {
1111
files = {files: result};
1212
res.redirect(redirect.replace(/%s/, encodeURIComponent(JSON.stringify(files))));
1313
}else if(options.callback) {
14-
options.callback(result);
14+
options.callback(result, req, res);
1515
} else {
1616
res.set({
1717
'Content-Type': (req.headers.accept || '').indexOf('application/json') !== -1

0 commit comments

Comments
 (0)