aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r--OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs b/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs
index c781cce..49c2e43 100644
--- a/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs
@@ -138,12 +138,9 @@ namespace OpenSim.Server.Handlers.Avatar
138 if (!UUID.TryParse(request["UserID"].ToString(), out user)) 138 if (!UUID.TryParse(request["UserID"].ToString(), out user))
139 return FailureResult(); 139 return FailureResult();
140 140
141 if (request.ContainsKey("Avatar") && request["Avatar"] is Dictionary<string, object>) 141 AvatarData avatar = new AvatarData(request);
142 { 142 if (m_AvatarService.SetAvatar(user, avatar))
143 AvatarData avatar = new AvatarData((Dictionary<string, object>)request["Avatar"]); 143 return SuccessResult();
144 if (m_AvatarService.SetAvatar(user, avatar))
145 return SuccessResult();
146 }
147 144
148 return FailureResult(); 145 return FailureResult();
149 } 146 }