Skip to content

Commit

Permalink
fix(postgraphql): don't throw a 500 error if JWT is expired (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
colophonemes authored and calebmer committed Jan 23, 2017
1 parent a7b72a9 commit a9b810a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default function createPostGraphQLHttpRequestHandler (options) {
}
catch (error) {
// Set our status code and send the client our results!
if (res.statusCode === 200) res.statusCode = error.status || 500
if (res.statusCode === 200) res.statusCode = error.status || error.statusCode || 500
result = { errors: [error] }

// If the status code is 500, let’s log our error.
Expand Down

0 comments on commit a9b810a

Please sign in to comment.