Skip to content

Handle downloads without Content-Length - #488

Open
vincenzofamoso wants to merge 1 commit into
binance:masterfrom
vincenzofamoso:fix/missing-content-length
Open

vincenzofamoso wants to merge 1 commit into
binance:masterfrom
vincenzofamoso:fix/missing-content-length

Conversation

@vincenzofamoso

Copy link
Copy Markdown

Summary

  • use a default read buffer when a response omits Content-Length
  • report downloaded bytes when percentage progress cannot be calculated
  • add a regression test covering a lengthless response

Testing

  • python3 -m unittest discover -s python -p test_*.py -v
  • python3 -m compileall -q python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant