Sfoglia il codice sorgente

HttpsMethod::Fetch(): Zero the FetchResult object when leaving due to 404

Robert Edmonds 11 anni fa
parent
commit
1296bc7c46
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      methods/https.cc

+ 2 - 0
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;
    }