git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7862c45
)
Added a default quality of `*/*` for content negotiation.
author
Heungsub Lee
<lee@heungsub.net>
Wed, 7 Jul 2010 04:38:54 +0000
(12:38 +0800)
committer
John Resig
<jeresig@gmail.com>
Fri, 24 Sep 2010 21:00:18 +0000
(
05:00
+0800)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
a9e13a8
..
897d424
100644
(file)
--- 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 ) {}