summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Edmonds <edmonds@debian.org>2015-03-22 00:12:45 -0400
committerMichael Vogt <mvo@debian.org>2015-04-07 12:23:51 +0200
commit1296bc7c466181a7978c313c40a041b34ce3eaeb (patch)
tree7a52d165a49ac947b2f48c34df0eead25d179e29
parent63b399509d46df71e8d16bd0d362eb23aa6558d7 (diff)
HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404
-rw-r--r--methods/https.cc2
1 files changed, 2 insertions, 0 deletions
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;
}