* 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.
0.6.0-stable
Teravus Ovares 2008-10-03 19:54:48 +00:00
parent 0f77a334bd
commit ae265e2f76
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

Binary file not shown.