Added a default quality of */*
for content negotiation.
This commit is contained in:
parent
7862c45ad2
commit
033a4c41e0
|
@ -377,7 +377,7 @@ jQuery.extend({
|
||||||
|
|
||||||
// Set the Accepts header for the server, depending on the dataType
|
// Set the Accepts header for the server, depending on the dataType
|
||||||
xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
|
xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
|
||||||
s.accepts[ s.dataType ] + ", */*" :
|
s.accepts[ s.dataType ] + ", */*; q=0.01" :
|
||||||
s.accepts._default );
|
s.accepts._default );
|
||||||
} catch( headerError ) {}
|
} catch( headerError ) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue