git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d77a2a2
)
Fixes #8146. Custom fields in xhrFields are now set after the XMLHttpRequest object...
author
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 02:02:11 +0000
(
03:02
+0100)
committer
jaubourg
<j@ubourg.net>
Thu, 3 Feb 2011 02:02:11 +0000
(
03:02
+0100)
src/ajax/xhr.js
patch
|
blob
|
history
diff --git
a/src/ajax/xhr.js
b/src/ajax/xhr.js
index
d4c291f
..
4adf8eb
100644
(file)
--- a/
src/ajax/xhr.js
+++ b/
src/ajax/xhr.js
@@
-85,13
+85,6
@@
if ( jQuery.support.ajax ) {
handle,
i;
handle,
i;
- // Apply custom fields if provided
- if ( s.xhrFields ) {
- for ( i in s.xhrFields ) {
- xhr[ i ] = s.xhrFields[ i ];
- }
- }
-
// Open the socket
// Passing null username, generates a login popup on Opera (#2865)
if ( s.username ) {
// Open the socket
// Passing null username, generates a login popup on Opera (#2865)
if ( s.username ) {
@@
-100,6
+93,13
@@
if ( jQuery.support.ajax ) {
xhr.open( s.type, s.url, s.async );
}
xhr.open( s.type, s.url, s.async );
}
+ // Apply custom fields if provided
+ if ( s.xhrFields ) {
+ for ( i in s.xhrFields ) {
+ xhr[ i ] = s.xhrFields[ i ];
+ }
+ }
+
// Requested-With header
// Not set for crossDomain requests with no content
// (see why at http://trac.dojotoolkit.org/ticket/9486)
// Requested-With header
// Not set for crossDomain requests with no content
// (see why at http://trac.dojotoolkit.org/ticket/9486)