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
parent
dc1214e46f
commit
5e6954dfe6
|
@ -587,6 +587,8 @@ namespace OpenSim.Framework.Servers
|
||||||
if (m_rpcHandlers.TryGetValue(methodName, out method))
|
if (m_rpcHandlers.TryGetValue(methodName, out method))
|
||||||
{
|
{
|
||||||
xmlRpcResponse = method(xmlRprcRequest);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -596,7 +598,6 @@ namespace OpenSim.Framework.Servers
|
||||||
}
|
}
|
||||||
|
|
||||||
responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
|
responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
|
||||||
response.KeepAlive = m_rpcHandlersKeepAlive[methodName];
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue