From: Robert Edmonds Date: Sun, 22 Mar 2015 04:12:45 +0000 (-0400) Subject: HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404 X-Git-Tag: 1.0.9.10~8^2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1296bc7c466181a7978c313c40a041b34ce3eaeb HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404 --- diff --git a/methods/https.cc b/methods/https.cc index 3a5981b58..f2b00dd64 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -402,6 +402,8 @@ bool HttpsMethod::Fetch(FetchItem *Itm) _error->Error("%s", err); // unlink, no need keep 401/404 page content in partial/ unlink(File->Name().c_str()); + Res.Size = 0; + Res.LastModified = 0; return false; }