* Refactor: Remove redundant try/catch from asset request since this is now handled by the base http server

0.6.0-stable
Justin Clarke Casey 2008-04-18 15:41:13 +00:00
parent acb0b06fed
commit afb06c7b88
1 changed files with 42 additions and 47 deletions

View File

@ -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;
}
}