From: Heungsub Lee Date: Wed, 7 Jul 2010 04:38:54 +0000 (+0800) Subject: Added a default quality of `*/*` for content negotiation. X-Git-Tag: 1.4.3rc1~59^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=033a4c41e0440106a0dffdd7328cd8b04781b45d;p=jquery.git Added a default quality of `*/*` for content negotiation. --- diff --git a/src/ajax.js b/src/ajax.js index a9e13a879..897d424da 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 ) {}