Skip to content

Commit

Permalink
Even more fix the bug where only http 200 is accepted as success (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew authored Jun 21, 2022
1 parent 69a3ae9 commit f3dac92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parfive/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ async def _get_http(
resp.request_info.url,
resp.headers,
)
if resp.status != 200:
if resp.status < 200 or resp.status >= 300:
raise FailedDownload(filepath_partial, url, resp)
else:
filepath, skip = get_filepath(filepath_partial(resp, url), overwrite)
Expand Down

0 comments on commit f3dac92

Please # to comment.