diff options
author | Teravus Ovares | 2008-08-26 06:05:43 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-08-26 06:05:43 +0000 |
commit | d48d9288589443c0bead5aa7571c31adcee471ff (patch) | |
tree | af0819e94988fd37ee5a59699f3065445959f1c9 /OpenSim | |
parent | * It turns out that Mono doesn't currently support setting the Certificate va... (diff) | |
download | opensim-SC_OLD-d48d9288589443c0bead5aa7571c31adcee471ff.zip opensim-SC_OLD-d48d9288589443c0bead5aa7571c31adcee471ff.tar.gz opensim-SC_OLD-d48d9288589443c0bead5aa7571c31adcee471ff.tar.bz2 opensim-SC_OLD-d48d9288589443c0bead5aa7571c31adcee471ff.tar.xz |
* One more tweak to the application/xml vs application/llsd+xml routine
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 7 |
1 files changed, 3 insertions, 4 deletions
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 | |||
560 | foreach (string pattern in m_llsdHandlers.Keys) | 560 | foreach (string pattern in m_llsdHandlers.Keys) |
561 | { | 561 | { |
562 | 562 | ||
563 | if (pattern.StartsWith(searchquery) && searchquery.Length >= pattern.Length) | 563 | if (searchquery.StartsWith(pattern) && searchquery.Length >= pattern.Length) |
564 | { | 564 | { |
565 | if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) | 565 | |
566 | { | ||
567 | bestMatch = pattern; | 566 | bestMatch = pattern; |
568 | } | 567 | |
569 | } | 568 | } |
570 | } | 569 | } |
571 | 570 | ||