]> source.dussan.org Git - jquery.git/commitdiff
Added a default quality of `*/*` for content negotiation.
authorHeungsub Lee <lee@heungsub.net>
Wed, 7 Jul 2010 04:38:54 +0000 (12:38 +0800)
committerJohn Resig <jeresig@gmail.com>
Fri, 24 Sep 2010 21:00:18 +0000 (05:00 +0800)
src/ajax.js

index a9e13a879e2b3e4548ff26dcb7199ff3fef65d8c..897d424dad0881e4cd56eef099331548e6ca60f5 100644 (file)
@@ -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 ) {}