On "show caps", stop excluding the seed cap but do exclude it elsewhere
parent
e5b7e2fd40
commit
a262d2492f
|
@ -147,25 +147,25 @@ namespace OpenSim.Framework.Capabilities
|
||||||
/// Return an LLSD-serializable Hashtable describing the
|
/// Return an LLSD-serializable Hashtable describing the
|
||||||
/// capabilities and their handler details.
|
/// capabilities and their handler details.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Hashtable CapsDetails
|
/// <param name="excludeSeed">If true, then exclude the seed cap.</param>
|
||||||
|
public Hashtable GetCapsDetails(bool excludeSeed)
|
||||||
{
|
{
|
||||||
get
|
Hashtable caps = new Hashtable();
|
||||||
|
string protocol = "http://";
|
||||||
|
|
||||||
|
if (m_useSSL)
|
||||||
|
protocol = "https://";
|
||||||
|
|
||||||
|
string baseUrl = protocol + m_httpListenerHostName + ":" + m_httpListenerPort.ToString();
|
||||||
|
foreach (string capsName in m_capsHandlers.Keys)
|
||||||
{
|
{
|
||||||
Hashtable caps = new Hashtable();
|
if (excludeSeed && "SEED" == capsName)
|
||||||
string protocol = "http://";
|
continue;
|
||||||
|
|
||||||
if (m_useSSL)
|
caps[capsName] = baseUrl + m_capsHandlers[capsName].Path;
|
||||||
protocol = "https://";
|
|
||||||
|
|
||||||
string baseUrl = protocol + m_httpListenerHostName + ":" + m_httpListenerPort.ToString();
|
|
||||||
foreach (string capsName in m_capsHandlers.Keys)
|
|
||||||
{
|
|
||||||
// skip SEED cap
|
|
||||||
if ("SEED" == capsName) continue;
|
|
||||||
caps[capsName] = baseUrl + m_capsHandlers[capsName].Path;
|
|
||||||
}
|
|
||||||
return caps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return caps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -903,7 +903,9 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
byte[] buf = Encoding.UTF8.GetBytes("Not found");
|
byte[] buf = Encoding.UTF8.GetBytes("Not found");
|
||||||
response.KeepAlive = false;
|
response.KeepAlive = false;
|
||||||
|
|
||||||
m_log.ErrorFormat("[BASE HTTP SERVER]: Handler not found for http request {0}", request.RawUrl);
|
m_log.ErrorFormat(
|
||||||
|
"[BASE HTTP SERVER]: Handler not found for http request {0} {1}",
|
||||||
|
request.HttpMethod, request.Url.PathAndQuery);
|
||||||
|
|
||||||
response.SendChunked = false;
|
response.SendChunked = false;
|
||||||
response.ContentLength64 = buf.Length;
|
response.ContentLength64 = buf.Length;
|
||||||
|
|
|
@ -239,7 +239,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hashtable caps = m_HostCapsObj.CapsHandlers.CapsDetails;
|
Hashtable caps = m_HostCapsObj.CapsHandlers.GetCapsDetails(true);
|
||||||
|
|
||||||
// Add the external too
|
// Add the external too
|
||||||
foreach (KeyValuePair<string, string> kvp in m_HostCapsObj.ExternalCapsHandlers)
|
foreach (KeyValuePair<string, string> kvp in m_HostCapsObj.ExternalCapsHandlers)
|
||||||
caps[kvp.Key] = kvp.Value;
|
caps[kvp.Key] = kvp.Value;
|
||||||
|
|
|
@ -239,7 +239,7 @@ namespace OpenSim.Region.CoreModules.Framework
|
||||||
{
|
{
|
||||||
caps.AppendFormat("** User {0}:\n", kvp.Key);
|
caps.AppendFormat("** User {0}:\n", kvp.Key);
|
||||||
|
|
||||||
for (IDictionaryEnumerator kvp2 = kvp.Value.CapsHandlers.CapsDetails.GetEnumerator(); kvp2.MoveNext(); )
|
for (IDictionaryEnumerator kvp2 = kvp.Value.CapsHandlers.GetCapsDetails(false).GetEnumerator(); kvp2.MoveNext(); )
|
||||||
{
|
{
|
||||||
Uri uri = new Uri(kvp2.Value.ToString());
|
Uri uri = new Uri(kvp2.Value.ToString());
|
||||||
caps.AppendFormat(m_showCapsCommandFormat, kvp2.Key, uri.PathAndQuery);
|
caps.AppendFormat(m_showCapsCommandFormat, kvp2.Key, uri.PathAndQuery);
|
||||||
|
|
Loading…
Reference in New Issue