-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes a regression introduced by #703 where we don't return JSON by default if an Accept header is present. This is relevant in situations where browsers start with text/html but also will accept application/xml with lower priority. Instead of returning a 406 in this cases, XML is delivered now. If one prefers JSON in browsers the _format query param has to be used.
- Loading branch information
1 parent
a2b0755
commit f81f387
Showing
2 changed files
with
148 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters