Commit 54ebe51
committed
Render JSON error when it occurs on a request path ending with .json
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.1 parent 57098c3 commit 54ebe51
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
0 commit comments