mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Better error handling in AssetServerPostHandler. Invalid XML causes an InvalidOperationException, not an XmlException
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
{
|
||||
asset = (AssetBase)xs.Deserialize(request);
|
||||
}
|
||||
catch (XmlException)
|
||||
catch (Exception)
|
||||
{
|
||||
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user