Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render JSON error when it occurs on a request path ending with .json #780

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

tadast
Copy link
Collaborator

@tadast tadast commented Aug 12, 2024

While ACCEPT header might not be passed in these requests, paths ending with .json are likely to expect a JSON response, so when an error occurs, respond with a JSON error.

This fixes error modal in such requests and displays an informative message now instead of empty content.

While ACCEPT header might not be passed in these requests, paths
ending with .json are likely to expect a JSON response, so when
an error occurs, respond with a JSON error.

This fixes error modal in such requests and displays an informative
message now instead of empty content.
@tadast tadast merged commit 269a429 into master Aug 12, 2024
4 of 5 checks passed
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.

1 participant