aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Servers')
-rw-r--r--OpenSim.Servers/BaseHttpServer.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim.Servers/BaseHttpServer.cs b/OpenSim.Servers/BaseHttpServer.cs
index 0a123b7..bb8f0ad 100644
--- a/OpenSim.Servers/BaseHttpServer.cs
+++ b/OpenSim.Servers/BaseHttpServer.cs
@@ -154,6 +154,7 @@ namespace OpenSim.Servers
154 154
155 public virtual void HandleRequest(Object stateinfo) 155 public virtual void HandleRequest(Object stateinfo)
156 { 156 {
157 try {
157 HttpListenerContext context = (HttpListenerContext)stateinfo; 158 HttpListenerContext context = (HttpListenerContext)stateinfo;
158 159
159 HttpListenerRequest request = context.Request; 160 HttpListenerRequest request = context.Request;
@@ -210,7 +211,10 @@ namespace OpenSim.Servers
210 response.SendChunked = false; 211 response.SendChunked = false;
211 response.ContentLength64 = buffer.Length; 212 response.ContentLength64 = buffer.Length;
212 output.Write(buffer, 0, buffer.Length); 213 output.Write(buffer, 0, buffer.Length);
213 output.Close(); 214 output.Close();
215 } catch (Exception e) {
216 Console.WriteLine(e.ToString());
217 }
214 } 218 }
215 219
216 public void Start() 220 public void Start()