Skip to content

Problem with Accept header #8

@dgm

Description

@dgm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions