From: Heungsub Lee Date: Wed, 7 Jul 2010 04:38:54 +0000 (+0800) Subject: Added a default quality of `*/*` for content negotiation. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=033a4c41e0440106a0dffdd7328cd8b04781b45d Added a default quality of `*/*` for content negotiation. --- diff --git a/src/ajax.js b/src/ajax.js index a9e13a8..897d424 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -377,7 +377,7 @@ jQuery.extend({ // Set the Accepts header for the server, depending on the dataType xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? - s.accepts[ s.dataType ] + ", */*" : + s.accepts[ s.dataType ] + ", */*; q=0.01" : s.accepts._default ); } catch( headerError ) {}