diff options
Diffstat (limited to 'methods/https.cc')
-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 06a0e285a..709744ce3 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -271,14 +271,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; |