diff options
author | jaubourg <j@ubourg.net> | 2011-04-19 00:29:20 -0700 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-04-19 00:29:20 -0700 |
commit | 3a3842c6696f121392c89b68f2f061043405ae9f (patch) | |
tree | a0bfbef4105cab7672c9ebc6788043444bd60d2c /src/ajax | |
parent | 8d3754751dfa348c1d1e2d6735ec8cbc3a404695 (diff) | |
download | jquery-3a3842c6696f121392c89b68f2f061043405ae9f.tar.gz jquery-3a3842c6696f121392c89b68f2f061043405ae9f.zip |
(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/xhr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index ba4c3ec7e..5dbc33d3f 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -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( _ ) {} |