* Tweaked handler code to recognize LibOMV's LLSD Login by post content.
* OK for public consumption.0.6.0-stable
parent
610313ea64
commit
468b7426c3
|
@ -608,6 +608,8 @@ namespace OpenSim.Framework.Servers
|
||||||
LLSD llsdRequest = null;
|
LLSD llsdRequest = null;
|
||||||
LLSD llsdResponse = null;
|
LLSD llsdResponse = null;
|
||||||
|
|
||||||
|
bool LegacyLLSDLoginLibOMV = (requestBody.Contains("passwd") && requestBody.Contains("mac") && requestBody.Contains("viewer_digest"));
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
llsdRequest = LLSDParser.DeserializeXml(requestBody);
|
llsdRequest = LLSDParser.DeserializeXml(requestBody);
|
||||||
|
@ -622,7 +624,7 @@ namespace OpenSim.Framework.Servers
|
||||||
|
|
||||||
LLSDMethod llsdhandler = null;
|
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
|
// we found a registered llsd handler to service this request
|
||||||
llsdResponse = llsdhandler(request.RawUrl, llsdRequest, request.RemoteIPEndPoint.ToString());
|
llsdResponse = llsdhandler(request.RawUrl, llsdRequest, request.RemoteIPEndPoint.ToString());
|
||||||
|
|
Loading…
Reference in New Issue