Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix compatibility with res.json()
  • Loading branch information
naholyr committed Oct 18, 2013
commit 98fcda77c5e0dd05e86e4dc2653ca2435bd55c0c
2 changes: 1 addition & 1 deletion lib/filehandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function (middleware, options) {
? 'application/json'
: 'text/plain'
});
res.json(200, result);
res.json(result);
}
});

Expand Down