summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-04-18 06:17:05 +0000
committerpixel <pixel>2007-04-18 06:17:05 +0000
commitfef7f522d73c698edb1b5a7612b0d25c3c9fff9f (patch)
treee81a8e7c9984e0d3c6d5033fefd8fd9a597ae110
parentbbdabec18228665d548557f1c78159486cffc54d (diff)
HtmlSkinner broke the 404 error. Restoring.
-rw-r--r--lib/HttpServ.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index 9a59dc2..37c1e28 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -134,7 +134,7 @@ int ProcessRequest::Do() throw(GeneralException) {
// Nous vérifions le domaine.
if (domain != "") {
bad = true;
- // Les domaines valides sont '/', '/bin' et '/image'.
+ // Les domaines par défaut valides sont '/', '/bin' et '/image'.
if (domain == "/image") bad = false;
if (domain == "/bin") bad = false;
if (domain == "/") bad = false;
@@ -388,7 +388,12 @@ void ProcessRequest::SendHeads(Handle * s, const String & mime, const String & e
*/
void ProcessRequest::ShowError(Handle * s) {
- *s << p->GetSkinner()->Error("");
+ *s << "HTTP/1.1 404 Not Found" << endhl <<
+ "Server: " << name << endhl <<
+ "Cache-Control: no-cache" << endhl <<
+ "Connection: closed" << endhl <<
+ "Content-Type: text/html" << endhl << endhl <<
+ p->GetSkinner()->Error("");
}
/*