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);
|
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &httpStatus);
|
||||||
|
|
||||||
if (res != CURLE_OK) {
|
if (res != CURLE_OK) {
|
||||||
long httpStatus = 0;
|
|
||||||
Error err =
|
Error err =
|
||||||
httpStatus == 404 ? NotFound :
|
httpStatus == 404 ? NotFound :
|
||||||
httpStatus == 403 ? Forbidden : Misc;
|
httpStatus == 403 ? Forbidden : Misc;
|
||||||
|
|
Loading…
Reference in a new issue