File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1345,11 +1345,11 @@ function preventXhrFn(
1345
1345
'content-type' : '' ,
1346
1346
'content-length' : '' ,
1347
1347
} ,
1348
+ url : haystack . url ,
1348
1349
props : {
1349
1350
response : { value : '' } ,
1350
1351
responseText : { value : '' } ,
1351
1352
responseXML : { value : null } ,
1352
- responseURL : { value : haystack . url } ,
1353
1353
} ,
1354
1354
} ) ;
1355
1355
xhrInstances . set ( this , xhrDetails ) ;
@@ -1405,6 +1405,7 @@ function preventXhrFn(
1405
1405
xhrDetails . headers [ 'content-length' ] = `${ xhrDetails . props . response . value } ` . length ;
1406
1406
Object . defineProperties ( xhrDetails . xhr , {
1407
1407
readyState : { value : 4 } ,
1408
+ responseURL : { value : xhrDetails . url } ,
1408
1409
status : { value : 200 } ,
1409
1410
statusText : { value : 'OK' } ,
1410
1411
} ) ;
@@ -1414,6 +1415,7 @@ function preventXhrFn(
1414
1415
Promise . resolve ( xhrText ) . then ( ( ) => xhrDetails ) . then ( details => {
1415
1416
Object . defineProperties ( details . xhr , {
1416
1417
readyState : { value : 1 , configurable : true } ,
1418
+ responseURL : { value : xhrDetails . url } ,
1417
1419
} ) ;
1418
1420
safeDispatchEvent ( details . xhr , 'readystatechange' ) ;
1419
1421
return details ;
You can’t perform that action at this time.
0 commit comments