diff options
author | Melanie | 2013-04-30 23:35:59 +0200 |
---|---|---|
committer | Melanie | 2013-04-30 23:35:59 +0200 |
commit | 0af1d8fe196e403c066f7fc3dbc9f4b897b4da2c (patch) | |
tree | 85470dbf911738d3e52c07a84e4f197947096cac /OpenSim/Capabilities | |
parent | Merge branch 'ubitwork' into avination-current (diff) | |
download | opensim-SC_OLD-0af1d8fe196e403c066f7fc3dbc9f4b897b4da2c.zip opensim-SC_OLD-0af1d8fe196e403c066f7fc3dbc9f4b897b4da2c.tar.gz opensim-SC_OLD-0af1d8fe196e403c066f7fc3dbc9f4b897b4da2c.tar.bz2 opensim-SC_OLD-0af1d8fe196e403c066f7fc3dbc9f4b897b4da2c.tar.xz |
Fix CAPS to work like they should - do not send caps to the viewer if they're not in the requested caps list.
The previous wrong behavior caused the debug setting "UseHTTPInventory" to fail
on all viewers when turned off. UDB inventory would not be correctly used in
that case.
Diffstat (limited to 'OpenSim/Capabilities')
-rw-r--r-- | OpenSim/Capabilities/CapsHandlers.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Capabilities/CapsHandlers.cs b/OpenSim/Capabilities/CapsHandlers.cs index 1709f46..458272d 100644 --- a/OpenSim/Capabilities/CapsHandlers.cs +++ b/OpenSim/Capabilities/CapsHandlers.cs | |||
@@ -158,7 +158,7 @@ namespace OpenSim.Framework.Capabilities | |||
158 | /// capabilities and their handler details. | 158 | /// capabilities and their handler details. |
159 | /// </summary> | 159 | /// </summary> |
160 | /// <param name="excludeSeed">If true, then exclude the seed cap.</param> | 160 | /// <param name="excludeSeed">If true, then exclude the seed cap.</param> |
161 | public Hashtable GetCapsDetails(bool excludeSeed) | 161 | public Hashtable GetCapsDetails(bool excludeSeed, List<string> requestedCaps) |
162 | { | 162 | { |
163 | Hashtable caps = new Hashtable(); | 163 | Hashtable caps = new Hashtable(); |
164 | string protocol = "http://"; | 164 | string protocol = "http://"; |
@@ -175,6 +175,9 @@ namespace OpenSim.Framework.Capabilities | |||
175 | if (excludeSeed && "SEED" == capsName) | 175 | if (excludeSeed && "SEED" == capsName) |
176 | continue; | 176 | continue; |
177 | 177 | ||
178 | if (requestedCaps != null && !requestedCaps.Contains(capsName)) | ||
179 | continue; | ||
180 | |||
178 | caps[capsName] = baseUrl + m_capsHandlers[capsName].Path; | 181 | caps[capsName] = baseUrl + m_capsHandlers[capsName].Path; |
179 | } | 182 | } |
180 | } | 183 | } |
@@ -182,4 +185,4 @@ namespace OpenSim.Framework.Capabilities | |||
182 | return caps; | 185 | return caps; |
183 | } | 186 | } |
184 | } | 187 | } |
185 | } \ No newline at end of file | 188 | } |