Skip to content

Commit 86bf628

Browse files
@jotadevelopersergiohgz
authored andcommitted
fix: on error returns 500 by default
1 parent 708a7bf commit 86bf628

File tree

2 files changed

+305
-35
lines changed

2 files changed

+305
-35
lines changed

plugins/audit/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class ProxyAudit {
1919
const fetchAudit = (req: $RequestExtend, res: $ResponseExtend) => {
2020
const requestCallback = function(err, _res, body) {
2121
if (err) {
22-
res.status(_res.statusCode).end();
22+
res.status(500).end();
2323
}
2424
res.send(body);
2525
};

0 commit comments

Comments
 (0)