(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.
This commit is contained in:
parent
8d3754751d
commit
3a3842c669
2 changed files with 6 additions and 3 deletions
|
@ -104,7 +104,7 @@ if ( jQuery.support.ajax ) {
|
|||
// Need an extra try/catch for cross domain requests in Firefox 3
|
||||
try {
|
||||
for ( i in headers ) {
|
||||
xhr.setRequestHeader( headers[ i ].n, headers[ i ].v );
|
||||
xhr.setRequestHeader( i, headers[ i ] );
|
||||
}
|
||||
} catch( _ ) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue