* Applied tleiades patch #435 fixing HttpBaseServer ABEND (thanx!)

afrisby
lbsa71 2007-09-24 11:20:09 +00:00
parent 9795b4f6c8
commit f076c71936
1 changed files with 12 additions and 3 deletions

View File

@ -197,9 +197,18 @@ namespace OpenSim.Framework.Servers
response.SendChunked = false; response.SendChunked = false;
response.ContentLength64 = buffer.Length; response.ContentLength64 = buffer.Length;
response.ContentEncoding = Encoding.UTF8; response.ContentEncoding = Encoding.UTF8;
try
response.OutputStream.Write(buffer, 0, buffer.Length); {
response.OutputStream.Close(); response.OutputStream.Write(buffer, 0, buffer.Length);
}
catch (Exception ex)
{
MainLog.Instance.Warn("HTTPD", "Error - " + ex.Message);
}
finally
{
response.OutputStream.Close();
}
} }
public void Start() public void Start()