Skip to content

Comments

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

Merged
tadast merged 1 commit intomasterfrom
tt/json-error
Aug 12, 2024
Merged

Render JSON error when it occurs on a request path ending with .json#780
tadast merged 1 commit intomasterfrom
tt/json-error

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
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