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:
Melanie
2009-12-27 03:31:53 +00:00
parent 831f759644
commit 9cef5f92a1
6 changed files with 74 additions and 74 deletions

View File

@@ -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(),