Cadair / parfive

An asyncio based parallel file downloader for Python 3.8+
https://parfive.readthedocs.io/
MIT License
50 stars 24 forks source link

Fix a bug where only HTTP 200 response codes were accepted as success #95

Closed SolarDrew closed 2 years ago

SolarDrew commented 2 years ago

Http 2xx range are all success statuses, so should be accepted without raising MultiPartDownloadError.

codecov[bot] commented 2 years ago

Codecov Report

Merging #95 (8bf5965) into main (7ded450) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage   93.33%   93.33%           
=======================================
  Files           5        5           
  Lines         540      540           
=======================================
  Hits          504      504           
  Misses         36       36           
Impacted Files Coverage Δ
parfive/downloader.py 93.26% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7ded450...8bf5965. Read the comment docs.