mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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
|
||||
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 ) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user