Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for onProgress event when using Chunked Transfer Encoding fixes #17823 #71
When dealing with chunked transfer encoding and dojo/request the underlying
By definition a chunked response can not report the total length of the response because generally is build on the fly. Also the Content-Length header must not be sent for chunked responses. So there is no way to compute the length.
In summary, using dojo/request we can not be informed about the progress of a chunked response due to the missing info about the total length. Treating a very large response, that was transferred as chunked , like a normal one. Without the possibility to get the individual chunks the caller is forced to wait until the final bits.
Proposal ( #17823 )
Hi @lsolano, thanks for the pull request. Per our contributing guidelines, can you verify if you have a CLA on file and have you opened a ticket in the Dojo bug tracker? https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md has more details if this doesn't make sense.
Once that is done, we'll take a look at this and consider your proposed change. Thanks again for your interest in Dojo, and your proposed contribution!
Hi @dylans thank for your time,
I have signed the CLA (user: lsolano, email: email@example.com). Also I logged into https://bugs.dojotoolkit.org and try to find a matching issue / enhancement that covers the changes proposed; but I can't find any. Finally, I've created the enhancement request #17823 (https://bugs.dojotoolkit.org/ticket/17823#).