Przeglądaj źródła

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

Robert Edmonds 11 lat temu
rodzic
commit
1296bc7c46
1 zmienionych plików z 2 dodań i 0 usunięć
  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;
    }