aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs
diff options
context:
space:
mode:
authorMelanie2009-12-27 03:31:53 +0000
committerMelanie2009-12-27 03:31:53 +0000
commit9cef5f92a1c3edf2ef475706931f1536f2c8524f (patch)
tree8d467f353c68e3decfd3234c65d23a4f146d6e52 /OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs
parentAdd the MySQL presence data module (diff)
downloadopensim-SC-9cef5f92a1c3edf2ef475706931f1536f2c8524f.zip
opensim-SC-9cef5f92a1c3edf2ef475706931f1536f2c8524f.tar.gz
opensim-SC-9cef5f92a1c3edf2ef475706931f1536f2c8524f.tar.bz2
opensim-SC-9cef5f92a1c3edf2ef475706931f1536f2c8524f.tar.xz
Change the signature of the forms requester data in preparation to getting
to where lists can be sent as requests
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs b/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs
index 8a68169..d914d32 100644
--- a/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Presence/PresenceServerPostHandler.cs
@@ -68,13 +68,13 @@ namespace OpenSim.Server.Handlers.Presence
68 68
69 try 69 try
70 { 70 {
71 Dictionary<string, string> request = 71 Dictionary<string, object> request =
72 ServerUtils.ParseQueryString(body); 72 ServerUtils.ParseQueryString(body);
73 73
74 if (!request.ContainsKey("METHOD")) 74 if (!request.ContainsKey("METHOD"))
75 return FailureResult(); 75 return FailureResult();
76 76
77 string method = request["METHOD"]; 77 string method = request["METHOD"].ToString();
78 78
79 switch (method) 79 switch (method)
80 { 80 {
@@ -92,11 +92,11 @@ namespace OpenSim.Server.Handlers.Presence
92 92
93 } 93 }
94 94
95 byte[] Report(Dictionary<string, string> request) 95 byte[] Report(Dictionary<string, object> request)
96 { 96 {
97 PresenceInfo info = new PresenceInfo(); 97 PresenceInfo info = new PresenceInfo();
98 98
99 if (request["PrincipalID"] == null || request["RegionID"] == null) 99 if (!request.ContainsKey("PrincipalID") || !request.ContainsKey("RegionID"))
100 return FailureResult(); 100 return FailureResult();
101 101
102 if (!UUID.TryParse(request["PrincipalID"].ToString(), 102 if (!UUID.TryParse(request["PrincipalID"].ToString(),