Commit c6de8210 authored by Richard Gibson's avatar Richard Gibson

Ref 705216dc: Synchronize ajax/xhr.js with master

parent 7e383b1b
...@@ -76,7 +76,7 @@ if ( xhrSupported ) { ...@@ -76,7 +76,7 @@ if ( xhrSupported ) {
headers["X-Requested-With"] = "XMLHttpRequest"; headers["X-Requested-With"] = "XMLHttpRequest";
} }
// Need an extra try/catch for cross-domain requests in Firefox 3 // Set headers
for ( i in headers ) { for ( i in headers ) {
xhr.setRequestHeader( i, headers[ i ] ); xhr.setRequestHeader( i, headers[ i ] );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment