Skip to content

Conversation

@whirr
Copy link

@whirr whirr commented Aug 26, 2025

The res.json is not restored to the previous value so when used in the error handler to return a JSON error it fails the validation again and use the default error handler to return a text/html error page.

@evanshortiss
Copy link
Owner

Great find @whirr. Could you add a test?

@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling e03dbff on whirr:fix-response-json-handler
into 7354dc1 on evanshortiss:master.

@evanshortiss
Copy link
Owner

Bump @whirr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants