Skip to content
Snippets Groups Projects
Commit 2081f9b8 authored by rswindell's avatar rswindell
Browse files

Fixed writeln(undefined);

Fixed Content-type: header being displayed in non-CGI uses (e.g. service).
parent 92b5627d
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,10 @@ if((this.http_request==undefined) && this.server && this.client) {
function writeln(str)
{
write(str + "\r\n");
if(str)
write(str + "\r\n");
else
write("\r\n");
}
}
......@@ -64,7 +67,7 @@ while(this.client!=undefined && client.socket.data_waiting) {
// log(format("client request: '%s'",request));
}
if(this.http_request==undefined) { /* CGI, so send CGI/HTTP headers */
if(this.server==undefined) { /* CGI, so send CGI/HTTP headers */
writeln("Content-Type: text/html");
writeln();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment