Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check the HTTP status code when downloading source files
We especially don't want to download the HTML response as source file/archive when the download fails due to HTTP 404 Not Found. Successful downloads should only result in OK (200) but we could relax the check via `response.status()..is_success()` (checks if status is within 200-299) if necessary (if some HTTP servers send wrong/weird status codes). Signed-off-by: Michael Weiss <michael.weiss@atos.net>
- Loading branch information