cosmetics, rename a few vars, etc

This commit is contained in:
UbitUmarov
2020-03-02 01:32:33 +00:00
parent 904553cdb3
commit 97cb6254ef
7 changed files with 40 additions and 37 deletions

View File

@@ -97,23 +97,23 @@ namespace OpenSim.Region.ClientStack.LindenCaps
public void RegisterCaps(UUID agent, Caps caps)
{
UUID capId = UUID.Random();
string capPath = "/CAPS/" + UUID.Random().ToString();
caps.RegisterHandler("AgentPreferences",
new RestStreamHandler("POST", "/CAPS/" + capId,
new RestStreamHandler("POST", capPath,
delegate(string request, string path, string param,
IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
return UpdateAgentPreferences(request, path, param, agent);
}));
caps.RegisterHandler("UpdateAgentLanguage",
new RestStreamHandler("POST", "/CAPS/" + capId,
new RestStreamHandler("POST", capPath,
delegate(string request, string path, string param,
IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
return UpdateAgentPreferences(request, path, param, agent);
}));
caps.RegisterHandler("UpdateAgentInformation",
new RestStreamHandler("POST", "/CAPS/" + capId,
new RestStreamHandler("POST", capPath,
delegate(string request, string path, string param,
IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{