* Refactor: Remove redundant try/catch from asset request since this is now handled by the base http server
parent
acb0b06fed
commit
afb06c7b88
|
@ -62,8 +62,7 @@ namespace OpenSim.Grid.AssetServer
|
|||
{
|
||||
string param = GetParam(path);
|
||||
byte[] result = new byte[] {};
|
||||
try
|
||||
{
|
||||
|
||||
string[] p = param.Split(new char[] {'/', '?', '&'}, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
if (p.Length > 0)
|
||||
|
@ -109,11 +108,7 @@ namespace OpenSim.Grid.AssetServer
|
|||
m_log.InfoFormat("[REST]: GET:/asset failed to find {0}", assetID);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Error(e.ToString());
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue