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