From a9a79ccc6e5a3630c9925c267763591236597bcb Mon Sep 17 00:00:00 2001 From: Sam Bisbee Date: Fri, 15 Apr 2011 16:36:43 -0400 Subject: 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. --- src/ajax/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ajax/xhr.js') 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( _ ) {} -- cgit v1.2.3