Skip to content
Snippets Groups Projects
Commit 37b8a84e authored by rswindell's avatar rswindell
Browse files

Be more HTTP compliant (this really should just be removed from CVS).

parent 32154ba4
Branches
Tags
No related merge requests found
...@@ -67,10 +67,13 @@ while(this.client!=undefined && client.socket.data_waiting) { ...@@ -67,10 +67,13 @@ while(this.client!=undefined && client.socket.data_waiting) {
// log(format("client request: '%s'",request)); // log(format("client request: '%s'",request));
} }
if(this.server==undefined) { /* CGI, so send CGI/HTTP headers */ if(this.server!=undefined) /* !CGI */
writeln("Content-Type: text/html"); writeln("HTTP/1.0 200 OK");
writeln();
} /* send HTTP headers */
writeln("Content-Type: text/html");
writeln();
// HTML Header // HTML Header
writeln("<html>"); writeln("<html>");
writeln("<head>"); writeln("<head>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment