CurlDownloader: Fix HTTP error processing
This commit is contained in:
parent
ab3ce1cc13
commit
de88004a9d
|
@ -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