diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-10-05 18:43:00 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-10-05 18:43:00 +0200 |
commit | 0fffbc8ce4cb6357f59db63db5571f46a668a66b (patch) | |
tree | 2d691473c05b86c9fd78229fd9edbe4e2ee6ee3a /methods | |
parent | 39fb1e241ebb76c7e51c8d8f2f76ce5f1e680859 (diff) | |
parent | 7be8c02360bdb9bd7f59b087da874f88af2a7206 (diff) |
merge with current debian apt/experimental
Diffstat (limited to 'methods')
-rw-r--r-- | methods/https.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/methods/https.cc b/methods/https.cc index e70206dfb..335699907 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -272,14 +272,17 @@ bool HttpsMethod::Fetch(FetchItem *Itm) long curl_servdate; curl_easy_getinfo(curl, CURLINFO_FILETIME, &curl_servdate); + File->Close(); + // cleanup if(success != 0) { _error->Error("%s", curl_errorstr); + // unlink, no need keep 401/404 page content in partial/ + unlink(File->Name().c_str()); Fail(); return true; } - File->Close(); // Timestamp struct utimbuf UBuf; |