diff options
author | Sam Bisbee <sam@sbisbee.com> | 2011-04-15 16:36:43 -0400 |
---|---|---|
committer | Sam Bisbee <sam@sbisbee.com> | 2011-04-15 16:36:43 -0400 |
commit | a9a79ccc6e5a3630c9925c267763591236597bcb (patch) | |
tree | d13494def91b1ee1dc8c4c1271d392305ad5c555 /src/ajax | |
parent | 35d9425969be95c110bb16b650d3fbe7e122c1db (diff) | |
download | jquery-a9a79ccc6e5a3630c9925c267763591236597bcb.tar.gz jquery-a9a79ccc6e5a3630c9925c267763591236597bcb.zip |
Continuing to map request headers using their name in uppercase for the index, but we now map to an object with an unmodified name and value: { name: "", value: "" }. This prevents overwriting of the user's supplied headers, which many applications parse with case sensitivity, because we no longer use the modified, uppercase index when building the request.
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 5dbc33d3f..0c837c5aa 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( i, headers[ i ] ); + xhr.setRequestHeader( headers[ i ].name, headers[ i ].value ); } } catch( _ ) {} |