Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Just added support for Accept headers in Ajax requests - defaults to …
…the correct header depending on the type of request that's being performmed. (Bug #1986)
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
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
Is there context for why a
*/*
mime type is appended to requests? This behavior is still present in the most recent builds of jQuery AJAX where very specific formats are specified in a jQuery request. For example, the request:creates the header
Accept:application/json, text/javascript, */*; q=0.01
. I would expect for this header to beAccept:application/json, text/javascript
since this type of jQuery request would fail on responses.