From 37b8a84ea2bff13578e6fef1ff30bf554e7f23ac Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 7 Jan 2014 03:51:19 +0000
Subject: [PATCH] Be more HTTP compliant (this really should just be removed
 from CVS).

---
 exec/nodelist-html.js | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/exec/nodelist-html.js b/exec/nodelist-html.js
index c57211fbe1..eb20b8b938 100644
--- a/exec/nodelist-html.js
+++ b/exec/nodelist-html.js
@@ -67,10 +67,13 @@ while(this.client!=undefined && client.socket.data_waiting) {
 //	log(format("client request: '%s'",request));
 }
 
-if(this.server==undefined) {	/* CGI, so send CGI/HTTP headers */
-	writeln("Content-Type: text/html");
-	writeln();
-}
+if(this.server!=undefined) 	/* !CGI */
+	writeln("HTTP/1.0 200 OK");
+
+/* send HTTP headers */
+writeln("Content-Type: text/html");
+writeln();
+
 // HTML Header
 writeln("<html>");
 writeln("<head>");
-- 
GitLab