aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-19 21:37:49 +0000
committerTeravus Ovares2008-09-19 21:37:49 +0000
commit293a822f7429d706a54707d3150d82edad7187cf (patch)
tree9d98f3233abfd60e222a4cf796857e3c3b734c8b /OpenSim/Framework
parentSmall formatting cleanup, before chi11ken notices. Me bad. (diff)
downloadopensim-SC_OLD-293a822f7429d706a54707d3150d82edad7187cf.zip
opensim-SC_OLD-293a822f7429d706a54707d3150d82edad7187cf.tar.gz
opensim-SC_OLD-293a822f7429d706a54707d3150d82edad7187cf.tar.bz2
opensim-SC_OLD-293a822f7429d706a54707d3150d82edad7187cf.tar.xz
* Implements an experimental method to define which region you want to go to in your 'region domain' in OGP.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs7
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 }