MultiUpdater icon indicating copy to clipboard operation
MultiUpdater copied to clipboard

httpcGetDownloadSizeState isn't safe to use

Open ksanislo opened this issue 10 years ago • 4 comments

This call will return a size of 0 even if there's data, in the case of Transfer-Encoding: chunked, or other CGI type responses... Look at the patch I submitted to lpp-3ds for a similar issue and how it avoid it by looping over httpcDownloadData() until finished instead.

ksanislo avatar Jul 15 '16 21:07 ksanislo

Thanks! I restarted working on the project, and this will be added soon!

LiquidFenrir avatar Aug 06 '16 23:08 LiquidFenrir

Cool, just fwiw the 3ds-example for http has been updated to be a better example if you want a clean reference.

ksanislo avatar Aug 06 '16 23:08 ksanislo

Thanks for telling me that, I'll take a look at it.

LiquidFenrir avatar Aug 06 '16 23:08 LiquidFenrir

I fixed this in a new branch, httpc_overhaul. It should be merged to master soon, after a bit more testing.

Hikari-chan avatar Jan 05 '17 03:01 Hikari-chan