aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
authorgareth2007-04-13 15:14:21 +0000
committergareth2007-04-13 15:14:21 +0000
commitdd5f4abdb9423dd767ccb1c8be310e40fdd1ad43 (patch)
treea9a3647fca57f49e00fed77006bd5379841f5828 /OpenSim.Servers/BaseHttpServer.cs
parentaaaaaaarrrrrrrrrggggghhhhhhhh why oh why? (diff)
downloadopensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.zip
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.gz
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.bz2
opensim-SC_OLD-dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43.tar.xz
Fixed weird XML/HTTP bugs
Can now update a sim profile at startup automatically! W00t! Untested neighbours code (for sim crossings) Didn't drink any red bull today :( Used liquid guarana extract + cola
Diffstat (limited to '')
-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()