Skip to content

Commit 98fcda7

Browse files
committed
Fix compatibility with res.json()
1 parent 42282dc commit 98fcda7

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
@@ -16,7 +16,7 @@ module.exports = function (middleware, options) {
1616
? 'application/json'
1717
: 'text/plain'
1818
});
19-
res.json(200, result);
19+
res.json(result);
2020
}
2121
});
2222

0 commit comments

Comments
 (0)