* Tweaked handler code to recognize LibOMV's LLSD Login by post content.

* OK for public consumption.
0.6.0-stable
Teravus Ovares 2008-09-19 01:36:02 +00:00
parent 610313ea64
commit 468b7426c3
1 changed files with 3 additions and 1 deletions

View File

@ -608,6 +608,8 @@ namespace OpenSim.Framework.Servers
LLSD llsdRequest = null;
LLSD llsdResponse = null;
bool LegacyLLSDLoginLibOMV = (requestBody.Contains("passwd") && requestBody.Contains("mac") && requestBody.Contains("viewer_digest"));
try
{
llsdRequest = LLSDParser.DeserializeXml(requestBody);
@ -622,7 +624,7 @@ namespace OpenSim.Framework.Servers
LLSDMethod llsdhandler = null;
if (TryGetLLSDHandler(request.RawUrl, out llsdhandler))
if (TryGetLLSDHandler(request.RawUrl, out llsdhandler) && !LegacyLLSDLoginLibOMV)
{
// we found a registered llsd handler to service this request
llsdResponse = llsdhandler(request.RawUrl, llsdRequest, request.RemoteIPEndPoint.ToString());