From de88004a9d5f257787f405bad8859c88c13e816d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 Mar 2016 11:17:35 +0200 Subject: [PATCH] CurlDownloader: Fix HTTP error processing --- src/libstore/download.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 4776d0091..b3a79e82a 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -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;