From a53cea6b7e4094ea51339c80ab5fe160a19a9f6b Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Tue, 20 May 2008 16:51:45 +0000 Subject: i'm extending the RestStreamHandler.Handler(...) signature to actually provide OSHttpRequest and OSHttpResponse to our REST handler. also, this adds proper RestPlugin.IsGod() checking against the X-OpenSim-Godkey HTTP request header. last, i added XML doc comments to RestPlugin.cs --- OpenSim/Region/DataSnapshot/DataRequestHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/DataSnapshot/DataRequestHandler.cs') diff --git a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs index abf2c1a..6ecae06 100644 --- a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs +++ b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs @@ -72,7 +72,8 @@ namespace OpenSim.Region.DataSnapshot new RestStreamHandler("POST", capsBase + m_discoveryPath, OnDiscoveryAttempt)); } - public string OnDiscoveryAttempt(string request, string path, string param) + public string OnDiscoveryAttempt(string request, string path, string param, + OSHttpRequest httpRequest, OSHttpResponse httpResponse) { //Very static for now, flexible enough to add new formats LLSDDiscoveryResponse llsd_response = new LLSDDiscoveryResponse(); -- cgit v1.1