We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I just had a heck of a time tracking down a problem where $.getJSON was not sending the proper Accept header. I finally found it here...
Is it necessary to do this now? It overrides every call to jquery and breaks any attempt to accept something different.
(function($){$().ajaxSend(function(a,xhr,s){xhr.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, /")})})(jQuery);
The text was updated successfully, but these errors were encountered:
Correction: That left only the default type; this changes the default type but leaves the other types available.
(function($){$.extend( $.ajaxSettings.accepts, { _default: "text/javascript, text/html, application/xml, text/xml, /" } );})
Sorry, something went wrong.
Wait, whose fork am I using? I look at this one and I see that it has been fixed. Arg!
I think I had the svn version or something.
adds MIT-LICENSE [fixes aaronchi#8]
967bc9b
No branches or pull requests
I just had a heck of a time tracking down a problem where $.getJSON was not sending the proper Accept header. I finally found it here...
Is it necessary to do this now? It overrides every call to jquery and breaks any attempt to accept something different.
(function($){$ ().ajaxSend(function(a,xhr,s){xhr.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, /")})})(jQuery);
The text was updated successfully, but these errors were encountered: