Fixed the cause of a hidden Exception which prevented BaseHttpServer to answer

when a non-existing XmlRpc method was called. Now, it will correctly respond
with a faultCode/faultMessage.
0.6.0-stable
Homer Horwitz 2008-10-25 13:45:26 +00:00
parent dc1214e46f
commit 5e6954dfe6
1 changed files with 2 additions and 1 deletions

View File

@ -587,6 +587,8 @@ namespace OpenSim.Framework.Servers
if (m_rpcHandlers.TryGetValue(methodName, out method))
{
xmlRpcResponse = method(xmlRprcRequest);
// if the method wasn't found, we can't determine KeepAlive state anyway, so lets do it only here
response.KeepAlive = m_rpcHandlersKeepAlive[methodName];
}
else
{
@ -596,7 +598,6 @@ namespace OpenSim.Framework.Servers
}
responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
response.KeepAlive = m_rpcHandlersKeepAlive[methodName];
}
else
{