CurlDownloader: Fix HTTP error processing

This commit is contained in:
Eelco Dolstra 2016-03-30 11:17:35 +02:00
parent ab3ce1cc13
commit de88004a9d

View file

@ -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;