Applied fix for avatar connectors similar to yesterday's fix of user account connectors.

slimupdates
Diva Canto 2010-01-03 07:03:14 -08:00
parent 8bed461957
commit ae1bdaa7b5
2 changed files with 9 additions and 7 deletions

View File

@ -138,12 +138,9 @@ namespace OpenSim.Server.Handlers.Avatar
if (!UUID.TryParse(request["UserID"].ToString(), out user)) if (!UUID.TryParse(request["UserID"].ToString(), out user))
return FailureResult(); return FailureResult();
if (request.ContainsKey("Avatar") && request["Avatar"] is Dictionary<string, object>) AvatarData avatar = new AvatarData(request);
{
AvatarData avatar = new AvatarData((Dictionary<string, object>)request["Avatar"]);
if (m_AvatarService.SetAvatar(user, avatar)) if (m_AvatarService.SetAvatar(user, avatar))
return SuccessResult(); return SuccessResult();
}
return FailureResult(); return FailureResult();
} }

View File

@ -140,7 +140,12 @@ namespace OpenSim.Services.Connectors
sendData["METHOD"] = "setavatar"; sendData["METHOD"] = "setavatar";
sendData["UserID"] = userID.ToString(); sendData["UserID"] = userID.ToString();
sendData["Avatar"] = avatar.ToKeyValuePairs();
Dictionary<string, object> structData = avatar.ToKeyValuePairs();
foreach (KeyValuePair<string, object> kvp in structData)
sendData[kvp.Key] = kvp.Value.ToString();
string reqString = ServerUtils.BuildQueryString(sendData); string reqString = ServerUtils.BuildQueryString(sendData);
// m_log.DebugFormat("[AVATAR CONNECTOR]: queryString = {0}", reqString); // m_log.DebugFormat("[AVATAR CONNECTOR]: queryString = {0}", reqString);