Skip to content

Commit

Permalink
Merge pull request #264 from ming-codes/bugfix/responseURL
Browse files Browse the repository at this point in the history
Fix missing responseURL property
  • Loading branch information
xg-wang authored Jul 18, 2019
2 parents ee5519c + 28b140a commit b0f8f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function interceptor(ctx) {
var uploadEvents = [];

// properties to copy from the native xhr to fake xhr
var lifecycleProps = ['readyState', 'responseText', 'responseXML', 'status', 'statusText'];
var lifecycleProps = ['readyState', 'responseText', 'responseXML', 'responseURL', 'status', 'statusText'];

var xhr = fakeXHR._passthroughRequest = new ctx.pretender._nativeXMLHttpRequest();
xhr.open(fakeXHR.method, fakeXHR.url, fakeXHR.async, fakeXHR.username, fakeXHR.password);
Expand Down

0 comments on commit b0f8f55

Please sign in to comment.