From ae265e2f763412e039301d9de4ca252b3f682876 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 3 Oct 2008 19:54:48 +0000 Subject: * Fixes a http protocol violation in HttpServer in Linux. StringWriter.Append() vs StringWriter.Append("\r\n"); StringWriter.Append() produces "\n" in *nix* * This doesn't solve anything. Just gets the protocol right. --- OpenSim/Framework/Servers/OSHttpResponse.cs | 7 ++++++- bin/HttpServer.dll | Bin 139264 -> 139264 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/OSHttpResponse.cs b/OpenSim/Framework/Servers/OSHttpResponse.cs index 549ac27..24bf340 100644 --- a/OpenSim/Framework/Servers/OSHttpResponse.cs +++ b/OpenSim/Framework/Servers/OSHttpResponse.cs @@ -177,7 +177,12 @@ namespace OpenSim.Framework.Servers set { if (HttpServer) - _httpResponse.Connection = ConnectionType.KeepAlive; + { + if (value == true) + _httpResponse.Connection = ConnectionType.KeepAlive; + else + _httpResponse.Connection = ConnectionType.Close; + } else _httpListenerResponse.KeepAlive = value; } diff --git a/bin/HttpServer.dll b/bin/HttpServer.dll index 39860be..f940d13 100644 Binary files a/bin/HttpServer.dll and b/bin/HttpServer.dll differ -- cgit v1.1