aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 0bd7495..6d432fd 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -197,9 +197,18 @@ namespace OpenSim.Framework.Servers
197 response.SendChunked = false; 197 response.SendChunked = false;
198 response.ContentLength64 = buffer.Length; 198 response.ContentLength64 = buffer.Length;
199 response.ContentEncoding = Encoding.UTF8; 199 response.ContentEncoding = Encoding.UTF8;
200 200 try
201 response.OutputStream.Write(buffer, 0, buffer.Length); 201 {
202 response.OutputStream.Close(); 202 response.OutputStream.Write(buffer, 0, buffer.Length);
203 }
204 catch (Exception ex)
205 {
206 MainLog.Instance.Warn("HTTPD", "Error - " + ex.Message);
207 }
208 finally
209 {
210 response.OutputStream.Close();
211 }
203 } 212 }
204 213
205 public void Start() 214 public void Start()