From 6a7d5444971b7891a23f3dc2f326ea3d7dacbaef Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 18 Jul 2008 19:28:52 +0000 Subject: pulling query handling through the handlers. adding (non-functional, work-in-progress) HttpHandler. NOTE: non-active code. does not glow in the dark. non-combustible. --- OpenSim/Framework/Servers/OSHttpHandler.cs | 4 +++- OpenSim/Framework/Servers/OSHttpXmlRpcHandler.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Servers') diff --git a/OpenSim/Framework/Servers/OSHttpHandler.cs b/OpenSim/Framework/Servers/OSHttpHandler.cs index 6e8f6fb..66fff3e 100644 --- a/OpenSim/Framework/Servers/OSHttpHandler.cs +++ b/OpenSim/Framework/Servers/OSHttpHandler.cs @@ -137,10 +137,12 @@ namespace OpenSim.Framework.Servers /// null or content type /// regex /// null or IP address regex - public OSHttpHandler(Regex method, Regex path, Dictionary headers, Regex contentType, Regex whitelist) + public OSHttpHandler(Regex method, Regex path, Dictionary query, + Dictionary headers, Regex contentType, Regex whitelist) { _method = method; _path = path; + _query = query; _ipEndPointRegex = whitelist; if (null == _headers && null != contentType) diff --git a/OpenSim/Framework/Servers/OSHttpXmlRpcHandler.cs b/OpenSim/Framework/Servers/OSHttpXmlRpcHandler.cs index 2c31cfd..f3f056a 100644 --- a/OpenSim/Framework/Servers/OSHttpXmlRpcHandler.cs +++ b/OpenSim/Framework/Servers/OSHttpXmlRpcHandler.cs @@ -114,7 +114,7 @@ namespace OpenSim.Framework.Servers /// public OSHttpXmlRpcHandler(XmlRpcMethod handler, string methodName, Regex path, Dictionary headers, Regex whitelist) - : base(new Regex(@"^POST$", RegexOptions.IgnoreCase | RegexOptions.Compiled), path, headers, + : base(new Regex(@"^POST$", RegexOptions.IgnoreCase | RegexOptions.Compiled), path, null, headers, new Regex(@"^(text|application)/xml", RegexOptions.IgnoreCase | RegexOptions.Compiled), whitelist) { -- cgit v1.1