Fix "tar: This does not look like a tar archive" with fetchTarball / -I http://

The 304 Not Modified was not handled correctly, so the empty result
from the conditional request would overwrite the previous tarball.
This commit is contained in:
Eelco Dolstra 2016-04-06 16:57:20 +02:00
parent b654381eb3
commit dc82160164

View file

@ -179,7 +179,6 @@ struct CurlDownloader : public Downloader
if (res == CURLE_WRITE_ERROR && etag == options.expectedETag) return false;
long httpStatus = -1;
if (res == CURLE_HTTP_RETURNED_ERROR)
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &httpStatus);
if (res != CURLE_OK) {