Skip to content

Commit f5bf49b

Browse files
authored
Merge pull request #15 from profileteam/master
Fixed possible invalid status code range error
2 parents 3137483 + 8d22577 commit f5bf49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class ExpressOAuthServer {
130130
res.set(oauthResponse.headers);
131131
}
132132

133-
res.status(error.code);
133+
res.status(error.code || 500);
134134

135135
if (error instanceof UnauthorizedRequestError) {
136136
return res.send();

0 commit comments

Comments
 (0)