aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index dc540f9..e61cc80 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -154,8 +154,16 @@ namespace OpenSim.Framework.Servers
154 request.InputStream.Close(); 154 request.InputStream.Close();
155 response.ContentType = requestHandler.ContentType; 155 response.ContentType = requestHandler.ContentType;
156 response.ContentLength64 = buffer.LongLength; 156 response.ContentLength64 = buffer.LongLength;
157 response.OutputStream.Write(buffer, 0, buffer.Length); 157
158 response.OutputStream.Close(); 158 try
159 {
160 response.OutputStream.Write(buffer, 0, buffer.Length);
161 response.OutputStream.Close();
162 }
163 catch (HttpListenerException e)
164 {
165 m_log.InfoFormat("[BASEHTTPSERVER] Http request abnormally terminated.");
166 }
159 } 167 }
160 else 168 else
161 { 169 {