summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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("");
}
/*