Skip to content

Commit

Permalink
fix: on error returns 500 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent 708a7bf commit 86bf628
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 35 deletions.
2 changes: 1 addition & 1 deletion plugins/audit/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class ProxyAudit {
const fetchAudit = (req: $RequestExtend, res: $ResponseExtend) => {
const requestCallback = function(err, _res, body) {
if (err) {
res.status(_res.statusCode).end();
res.status(500).end();
}
res.send(body);
};
Expand Down
Loading

0 comments on commit 86bf628

Please sign in to comment.