EstateAccess get: do send empty arrays

master
UbitUmarov 2020-01-11 12:58:46 +00:00
parent ac32188978
commit d92ef598c5
1 changed files with 11 additions and 3 deletions

View File

@ -133,12 +133,12 @@ namespace OpenSim.Region.ClientStack.Linden
new RestHTTPHandler(
"GET",
capUrl,
httpMethod => ProcessRequest(httpMethod, agentID, caps),
"EstateAccess",
httpMethod => ProcessGetRequest(httpMethod, agentID, caps),
"EstateAccessGet",
agentID.ToString())); ;
}
public Hashtable ProcessRequest(Hashtable request, UUID AgentId, Caps cap)
public Hashtable ProcessGetRequest(Hashtable request, UUID AgentId, Caps cap)
{
Hashtable responsedata = new Hashtable();
responsedata["int_response_code"] = 200; //501; //410; //404;
@ -183,6 +183,8 @@ namespace OpenSim.Region.ClientStack.Linden
}
LLSDxmlEncode.AddEndArray(sb);
}
else
LLSDxmlEncode.AddEmptyArray("AllowedAgents", sb);
if (groups != null && groups.Length > 0)
{
@ -198,6 +200,8 @@ namespace OpenSim.Region.ClientStack.Linden
}
LLSDxmlEncode.AddEndArray(sb);
}
else
LLSDxmlEncode.AddEmptyArray("AllowedGroups", sb);
if (EstateBans != null && EstateBans.Length > 0)
{
@ -220,6 +224,8 @@ namespace OpenSim.Region.ClientStack.Linden
}
LLSDxmlEncode.AddEndArray(sb);
}
else
LLSDxmlEncode.AddEmptyArray("BannedAgents", sb);
if (managers != null && managers.Length > 0)
{
@ -232,6 +238,8 @@ namespace OpenSim.Region.ClientStack.Linden
}
LLSDxmlEncode.AddEndArray(sb);
}
else
LLSDxmlEncode.AddEmptyArray("Managers", sb);
LLSDxmlEncode.AddEndMap(sb);
responsedata["str_response_string"] = LLSDxmlEncode.End(sb);