From 06e4fcd260fb9ef7aff95ca660d0a2d385335d4f Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Tue, 29 Apr 2014 07:21:37 +0300 Subject: Fixed the UpdateAgentInformation CAP: the viewer expects the simulator to echo back the maturity that it sent Without this change, attempts to change the maturity rating in the viewer's Preferences don't work. --- .../ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index a4fe81c..79bc5ef 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs @@ -923,13 +923,14 @@ namespace OpenSim.Region.ClientStack.Linden string param, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) { -// OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); - OSDMap resp = new OSDMap(); - - OSDMap accessPrefs = new OSDMap(); - accessPrefs["max"] = "A"; + OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); + OSDMap accessPrefs = (OSDMap)req["access_prefs"]; + string desiredMaturity = accessPrefs["max"]; - resp["access_prefs"] = accessPrefs; + OSDMap resp = new OSDMap(); + OSDMap respAccessPrefs = new OSDMap(); + respAccessPrefs["max"] = desiredMaturity; // echoing the maturity back means success + resp["access_prefs"] = respAccessPrefs; string response = OSDParser.SerializeLLSDXmlString(resp); return response; -- cgit v1.1