ungoogled-software/ungoogled-chromium

utils/downloads.py should check HTTP response before renaming

Open

#1,805 opened on Jan 20, 2022

 (0 comments) (1 reaction) (0 assignees)Python (771 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (18,674 stars)
PR merge metrics
 (PR metrics pending)

Description

utils/downloads.py should check HTTP response and rename downloaded files only if HTTP 200 OK response received. https://github.com/Eloston/ungoogled-chromium/blob/93cf016effb260428578c765e53b33020bc170d6/utils/downloads.py#L222-L235

Contributor guide