Fix WebFetchInventoryDescendents cap to use Utils.AssetTypeTostring/InventoryTypeToString to convert types to strings

These cover a wider range of types.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-25 21:54:31 +00:00
parent 0a0aa77cfd
commit 8c82ff16ad
2 changed files with 17 additions and 8 deletions

View File

@@ -122,11 +122,13 @@ namespace OpenSim.Region.ClientStack.Linden
WebFetchInvDescHandler webFetchHandler = new WebFetchInvDescHandler(m_InventoryService, m_LibraryService);
IRequestHandler reqHandler = new RestStreamHandler("POST", "/CAPS/" + UUID.Random(), webFetchHandler.FetchInventoryDescendentsRequest);
caps.RegisterHandler("WebFetchInventoryDescendents", reqHandler);
// caps.RegisterHandler("FetchInventoryDescendents2", reqHandler);
}
else
{
m_log.InfoFormat("[WEBFETCHINVENTORYDESCENDANTS]: {0} in region {1}", m_URL, m_scene.RegionInfo.RegionName);
caps.RegisterHandler("WebFetchInventoryDescendents", m_URL);
// caps.RegisterHandler("FetchInventoryDescendents2", m_URL);
}
}