File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ exports.XMLHttpRequest = function() {
109
109
// Result & response
110
110
this . responseText = "" ;
111
111
this . responseXML = "" ;
112
+ this . responseURL = "" ;
112
113
this . status = null ;
113
114
this . statusText = null ;
114
115
@@ -169,6 +170,8 @@ exports.XMLHttpRequest = function() {
169
170
"user" : user || null ,
170
171
"password" : password || null
171
172
} ;
173
+
174
+ this . responseUrl = url ;
172
175
173
176
setState ( this . OPENED ) ;
174
177
} ;
@@ -408,7 +411,7 @@ exports.XMLHttpRequest = function() {
408
411
// @TODO Prevent looped redirects
409
412
if ( response . statusCode === 301 || response . statusCode === 302 || response . statusCode === 303 || response . statusCode === 307 ) {
410
413
// Change URL to the redirect location
411
- settings . url = response . headers . location ;
414
+ self . responseUrl = settings . url = response . headers . location ;
412
415
var url = Url . parse ( settings . url ) ;
413
416
// Set host var in case it's used later
414
417
host = url . hostname ;
You can’t perform that action at this time.
0 commit comments