HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
63b3995
)
HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404
author
Robert Edmonds
<edmonds@debian.org>
Sun, 22 Mar 2015 04:12:45 +0000
(
00:12
-0400)
committer
Michael Vogt
<mvo@debian.org>
Tue, 7 Apr 2015 10:23:51 +0000
(12:23 +0200)
methods/https.cc
patch
|
blob
|
blame
|
history
diff --git
a/methods/https.cc
b/methods/https.cc
index
3a5981b
..
f2b00dd
100644
(file)
--- 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;
}