Added a default quality of */* for content negotiation.

This commit is contained in:
Heungsub Lee 2010-07-07 12:38:54 +08:00 committed by John Resig
parent 7862c45ad2
commit 033a4c41e0

View 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 ) {}