mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Change the signature of the forms requester data in preparation to getting
to where lists can be sent as requests
This commit is contained in:
@@ -68,13 +68,13 @@ namespace OpenSim.Server.Handlers.Presence
|
||||
|
||||
try
|
||||
{
|
||||
Dictionary<string, string> request =
|
||||
Dictionary<string, object> request =
|
||||
ServerUtils.ParseQueryString(body);
|
||||
|
||||
if (!request.ContainsKey("METHOD"))
|
||||
return FailureResult();
|
||||
|
||||
string method = request["METHOD"];
|
||||
string method = request["METHOD"].ToString();
|
||||
|
||||
switch (method)
|
||||
{
|
||||
@@ -92,11 +92,11 @@ namespace OpenSim.Server.Handlers.Presence
|
||||
|
||||
}
|
||||
|
||||
byte[] Report(Dictionary<string, string> request)
|
||||
byte[] Report(Dictionary<string, object> request)
|
||||
{
|
||||
PresenceInfo info = new PresenceInfo();
|
||||
|
||||
if (request["PrincipalID"] == null || request["RegionID"] == null)
|
||||
if (!request.ContainsKey("PrincipalID") || !request.ContainsKey("RegionID"))
|
||||
return FailureResult();
|
||||
|
||||
if (!UUID.TryParse(request["PrincipalID"].ToString(),
|
||||
|
||||
Reference in New Issue
Block a user