]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404
[apt.git] / methods / https.cc
index 3a5981b5824511a4cc9d9d74eb2f2bc3fbf475cd..f2b00dd64f213c11c45bdc9a197536a8c0fb8336 100644 (file)
@@ -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;
    }