File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1345,11 +1345,11 @@ function preventXhrFn(
13451345 'content-type' : '' ,
13461346 'content-length' : '' ,
13471347 } ,
1348+ url : haystack . url ,
13481349 props : {
13491350 response : { value : '' } ,
13501351 responseText : { value : '' } ,
13511352 responseXML : { value : null } ,
1352- responseURL : { value : haystack . url } ,
13531353 } ,
13541354 } ) ;
13551355 xhrInstances . set ( this , xhrDetails ) ;
@@ -1405,6 +1405,7 @@ function preventXhrFn(
14051405 xhrDetails . headers [ 'content-length' ] = `${ xhrDetails . props . response . value } ` . length ;
14061406 Object . defineProperties ( xhrDetails . xhr , {
14071407 readyState : { value : 4 } ,
1408+ responseURL : { value : xhrDetails . url } ,
14081409 status : { value : 200 } ,
14091410 statusText : { value : 'OK' } ,
14101411 } ) ;
@@ -1414,6 +1415,7 @@ function preventXhrFn(
14141415 Promise . resolve ( xhrText ) . then ( ( ) => xhrDetails ) . then ( details => {
14151416 Object . defineProperties ( details . xhr , {
14161417 readyState : { value : 1 , configurable : true } ,
1418+ responseURL : { value : xhrDetails . url } ,
14171419 } ) ;
14181420 safeDispatchEvent ( details . xhr , 'readystatechange' ) ;
14191421 return details ;
You can’t perform that action at this time.
0 commit comments