Skip to content

Commit

Permalink
Issue #3181
Browse files Browse the repository at this point in the history
Gives loaded progress back to XMLHttpRequest
  • Loading branch information
butchmarshall committed Nov 15, 2017
1 parent da04796 commit c5eeb96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/Network/XMLHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) {
} else {
this._response += responseText;
}
// fixing progress always being 0
progress = (progress === 0)? this._response.length : progress;

XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(
requestId,
Expand Down

0 comments on commit c5eeb96

Please sign in to comment.