Skip to content

Commit

Permalink
fixes #17823, add Add support for onProgress event when using Chunked…
Browse files Browse the repository at this point in the history
… Transfer Encoding
  • Loading branch information
lsolano authored and dylans committed May 9, 2014
1 parent fcdd8c1 commit e4dea97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions request/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ define([
response.loaded = evt.loaded;
response.total = evt.total;
dfd.progress(response);
} else if(response.xhr.getResponseHeader('Transfer-Encoding') === 'chunked' && response.xhr.readyState === 3){
response.loaded = evt.position;
dfd.progress(response);
}
}

Expand Down

0 comments on commit e4dea97

Please sign in to comment.