mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
CurlDownloader: Fix HTTP error processing
This commit is contained in:
parent
ab3ce1cc13
commit
de88004a9d
1 changed files with 0 additions and 1 deletions
|
@ -183,7 +183,6 @@ struct CurlDownloader : public Downloader
|
|||
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &httpStatus);
|
||||
|
||||
if (res != CURLE_OK) {
|
||||
long httpStatus = 0;
|
||||
Error err =
|
||||
httpStatus == 404 ? NotFound :
|
||||
httpStatus == 403 ? Forbidden : Misc;
|
||||
|
|
Loading…
Reference in a new issue