diff options
author | Pixel <Pixel> | 2001-11-27 10:52:05 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-27 10:52:05 +0000 |
commit | 29f8cedf68c5e45ca20078a2a34a07875d7dea5b (patch) | |
tree | a9c5a77cc19d8addc8e79166c2c62f5d7f3b0bde /lib/HttpServ.cc | |
parent | 3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 (diff) |
HelloJava removed
Diffstat (limited to 'lib/HttpServ.cc')
-rw-r--r-- | lib/HttpServ.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index 8b28878..75b6800 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -65,14 +65,14 @@ int ProcessRequest::Do() { len = -1; do { b >> t; - cerr << "Read Request (n): " << t << endl; + // cerr << "Read Request (n): " << t << endl; if ((t.strstr("Content-Length: ") == 0) || (t.strstr("Content-length: ") == 0)) { cerr << "Saw 'Content-Lenght:', reading length from '" << t.extract(16) << "'\n"; len = t.extract(16).to_int(); } } while (t.strlen()); - cerr << "---- Processing it.\n"; + // cerr << "---- Processing it.\n"; hasvars = false; @@ -163,7 +163,7 @@ int ProcessRequest::Do() { if (a) a->Stop(); delete Vars; - cerr << "---- Sending header buffer.\n"; + // cerr << "---- Sending header buffer.\n"; c = new CopyJob(&b, &s, -1, false); WaitFor(c); current = 3; @@ -173,7 +173,7 @@ int ProcessRequest::Do() { delete c; if (a) { - cerr << "---- Sending contents.\n"; + // cerr << "---- Sending contents.\n"; a->Restart(); WaitFor(a); current = 4; @@ -344,6 +344,7 @@ void ProcessRequest::SendHeads(Handle * s, const String & mime, const String & e strftime(buf, 1024, "%a, %d %b %Y %H:%M:%S GMT", ft); } *s << "Last-Modified: " << buf << endhl << extra << + "Cache-Control: no-cache" << endhl << "Keep-Alive: timeout=0, max=0" << endhl << "Connection: Keep-Alive" << endhl << "Content-Type: " << mime << endhl << endhl; |