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() {
109109 // Result & response
110110 this . responseText = "" ;
111111 this . responseXML = "" ;
112+ this . responseURL = "" ;
112113 this . status = null ;
113114 this . statusText = null ;
114115
@@ -169,6 +170,8 @@ exports.XMLHttpRequest = function() {
169170 "user" : user || null ,
170171 "password" : password || null
171172 } ;
173+
174+ this . responseURL = url ;
172175
173176 setState ( this . OPENED ) ;
174177 } ;
@@ -408,7 +411,7 @@ exports.XMLHttpRequest = function() {
408411 // @TODO Prevent looped redirects
409412 if ( response . statusCode === 301 || response . statusCode === 302 || response . statusCode === 303 || response . statusCode === 307 ) {
410413 // Change URL to the redirect location
411- settings . url = response . headers . location ;
414+ self . responseURL = settings . url = response . headers . location ;
412415 var url = Url . parse ( settings . url ) ;
413416 // Set host var in case it's used later
414417 host = url . hostname ;
You can’t perform that action at this time.
0 commit comments