summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}