From 349309cd650c85bcdb4d8256e1aba6d9b90ce6e4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 26 Dec 2001 23:12:44 +0000 Subject: Some debug... --- lib/HttpServ.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index b4669ad..e1ddd73 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -125,7 +125,7 @@ int ProcessRequest::Do() { ParseVars(&b, len); } -// cerr << " Domain = '" << domain << "' - File = '" << file << "'\n"; + cerr << " Domain = '" << domain << "' - File = '" << file << "'\n"; if (!bad) { // Nous vérifions le domaine. @@ -136,7 +136,7 @@ int ProcessRequest::Do() { if (domain == "/bin") bad = false; if (domain == "/") bad = false; if (bad) { -// cerr << "Error: bad domain.\n"; + cerr << "Error: bad domain.\n"; } } else { // L'url sans domaine ni fichier est valide. (cela arrive sur certains navigateurs...) @@ -170,11 +170,11 @@ int ProcessRequest::Do() { SendHeads(&b, GetMime(file), String("Accept-Ranges: bytes") + endhl + "Content-Length: " + (unsigned long long int) i->GetSize() + endhl, i->GetModif()); i->SetNonBlock(); a = new CopyJob(i, &s); -// cerr << "File found, dumping.\n"; + cerr << "File found, dumping.\n"; } catch (IOGeneral e) { ShowError(&b); -// cerr << "File not found, error showed.\n"; + cerr << "File not found, error showed.\n"; } } } @@ -274,7 +274,7 @@ bool ProcessRequest::ParseUri(String & file, String & domain, String & gvars, Ha ssize_t sppos; *s >> t; -// cerr << "Read Request (1): " << t << endl; + cerr << "Read Request (1): " << t << endl; int IPos = t.strchr('?'); -- cgit v1.2.3