From d48d9288589443c0bead5aa7571c31adcee471ff Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 26 Aug 2008 06:05:43 +0000 Subject: * One more tweak to the application/xml vs application/llsd+xml routine --- OpenSim/Framework/Servers/BaseHttpServer.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 303ce64..79929bd 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -560,12 +560,11 @@ namespace OpenSim.Framework.Servers 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; - } + } } -- cgit v1.1