* One more tweak to the application/xml vs application/llsd+xml routine

0.6.0-stable
Teravus Ovares 2008-08-26 06:05:43 +00:00
parent 1015ca3863
commit d48d928858
1 changed files with 3 additions and 4 deletions

View File

@ -560,12 +560,11 @@ namespace OpenSim.Framework.Servers
foreach (string pattern in m_llsdHandlers.Keys) foreach (string pattern in m_llsdHandlers.Keys)
{ {
if (pattern.StartsWith(searchquery) && searchquery.Length >= pattern.Length) if (searchquery.StartsWith(pattern) && searchquery.Length >= pattern.Length)
{ {
if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length)
{
bestMatch = pattern; bestMatch = pattern;
}
} }
} }