From 828671cdddb247edd934f2514f36f8aea3fc641b Mon Sep 17 00:00:00 2001
From: echicken <>
Date: Tue, 4 Sep 2012 16:41:11 +0000
Subject: [PATCH] Surcease from sending additional header-termination newline
 (a blank line already appears after the headers.)

---
 exec/load/http.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/exec/load/http.js b/exec/load/http.js
index 4d167a6f90..2906b7b379 100644
--- a/exec/load/http.js
+++ b/exec/load/http.js
@@ -74,8 +74,6 @@ function HTTPRequest(username,password)
 	};
 
 	this.SendRequest=function() {
-		var i;
-		
 		if((this.sock=new Socket(SOCK_STREAM))==null)
 			throw("Unable to create socket");
 		if(!this.sock.connect(this.url.host, this.url.port?this.url.port:(this.url.scheme=='http'?80:443)))
@@ -88,8 +86,9 @@ function HTTPRequest(username,password)
 			if(!this.sock.send(this.request_headers[i]+"\n"))
 				throw("Unable to send headers");
 		}
-		if(!this.sock.send("\n"))
-			throw("Unable to terminate headers");
+// This termination is apparently unnecessary - blank line already appears after headers.
+//		if(!this.sock.send("\n"))
+//			throw("Unable to terminate headers");
 		if(this.body != undefined) {
 			if(!this.sock.send(this.body))
 				throw("Unable to send body");
-- 
GitLab