Fix for bug 20145. Proxy Auto Config is now in. For more information check http://www.mozilla.org/docs/netlib/pac.html r=bryner,rjc.

This commit is contained in:
gagan@netscape.com
2000-07-31 21:24:55 +00:00
parent caeaad9397
commit f493fcaef9
7 changed files with 234 additions and 22 deletions

View File

@@ -88,6 +88,12 @@ class ScriptFile {
return;
}
if (request.startsWith("HEAD /") || request.startsWith("head /"))
{
WriteHeadResponse();
return;
}
boolean outDirty = false;
if (file != null)
{
@@ -251,6 +257,17 @@ class ScriptFile {
}
}
protected void WriteHeadResponse() {
out.println("HTTP/1.1 200 OK");
out.println("Server: HTTP Test Server/1.1");
out.println("Content-Type: text/plain");
out.println("Content-Length: 1000" ); // bogus
out.println("Date: " + (new Date()).toString());
out.println(); // also test without it
out.flush();
}
String file = null;
// The string associated with this script occurence