diff options
Diffstat (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 69fc4ad..86ce4c3 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs | |||
@@ -752,11 +752,14 @@ namespace OpenSim.Framework.Servers | |||
752 | 752 | ||
753 | foreach (string pattern in m_llsdHandlers.Keys) | 753 | foreach (string pattern in m_llsdHandlers.Keys) |
754 | { | 754 | { |
755 | if (searchquery.StartsWith(searchquery)) | 755 | if (searchquery.ToLower().StartsWith(pattern.ToLower())) |
756 | { | 756 | { |
757 | if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) | 757 | if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) |
758 | { | 758 | { |
759 | bestMatch = pattern; | 759 | // You have to specifically register for '/' and to get it, you must specificaly request it |
760 | // | ||
761 | if (pattern == "/" && searchquery == "/" || pattern != "/") | ||
762 | bestMatch = pattern; | ||
760 | } | 763 | } |
761 | } | 764 | } |
762 | } | 765 | } |