aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/OSHttpRequest.cs21
1 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/OSHttpRequest.cs b/OpenSim/Framework/Servers/OSHttpRequest.cs
index 28f4337..55c983d 100644
--- a/OpenSim/Framework/Servers/OSHttpRequest.cs
+++ b/OpenSim/Framework/Servers/OSHttpRequest.cs
@@ -221,10 +221,25 @@ namespace OpenSim.Framework.Servers
221 _userAgent = req.Headers["user-agent"]; 221 _userAgent = req.Headers["user-agent"];
222 _queryString = new NameValueCollection(); 222 _queryString = new NameValueCollection();
223 _query = new Hashtable(); 223 _query = new Hashtable();
224 foreach (KeyValuePair<string, HttpInputItem> q in req.QueryString) 224 try
225 { 225 {
226 _queryString.Add(q.Key, q.Value.Value); 226 foreach (KeyValuePair<string, HttpInputItem> q in req.QueryString)
227 _query[q.Key] = q.Value.Value; 227 {
228 try
229 {
230 _queryString.Add(q.Key, q.Value.Value);
231 _query[q.Key] = q.Value.Value;
232 }
233 catch (InvalidCastException)
234 {
235 System.Console.WriteLine("[OSHttpRequest]: Errror parsing querystring.. but it was recoverable.. skipping on to the next one");
236 continue;
237 }
238 }
239 }
240 catch (Exception)
241 {
242 System.Console.WriteLine("[OSHttpRequest]: Errror parsing querystring");
228 } 243 }
229 // TODO: requires change to HttpServer.HttpRequest 244 // TODO: requires change to HttpServer.HttpRequest
230 _ipEndPoint = null; 245 _ipEndPoint = null;