Преглед изворни кода

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

Robert Edmonds пре 11 година
родитељ
комит
1296bc7c46
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      methods/https.cc

+ 2 - 0
methods/https.cc

@@ -402,6 +402,8 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
       _error->Error("%s", err);
       _error->Error("%s", err);
       // unlink, no need keep 401/404 page content in partial/
       // unlink, no need keep 401/404 page content in partial/
       unlink(File->Name().c_str());
       unlink(File->Name().c_str());
+      Res.Size = 0;
+      Res.LastModified = 0;
       return false;
       return false;
    }
    }