* 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
parent
0f77a334bd
commit
ae265e2f76
|
@ -177,7 +177,12 @@ namespace OpenSim.Framework.Servers
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (HttpServer)
|
if (HttpServer)
|
||||||
_httpResponse.Connection = ConnectionType.KeepAlive;
|
{
|
||||||
|
if (value == true)
|
||||||
|
_httpResponse.Connection = ConnectionType.KeepAlive;
|
||||||
|
else
|
||||||
|
_httpResponse.Connection = ConnectionType.Close;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_httpListenerResponse.KeepAlive = value;
|
_httpListenerResponse.KeepAlive = value;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue