mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* 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.
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user