diff options
author | Pixel <Pixel> | 2001-12-26 23:12:44 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-26 23:12:44 +0000 |
commit | 349309cd650c85bcdb4d8256e1aba6d9b90ce6e4 (patch) | |
tree | 2d2439ce6b270390ee0dfe56300a7ba252b1e338 /lib/HttpServ.cc | |
parent | a0fa4b62216558259e5706f1cca5d26f75eacaa8 (diff) |
Some debug...
Diffstat (limited to 'lib/HttpServ.cc')
-rw-r--r-- | lib/HttpServ.cc | 10 |
1 files 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('?'); |