handle PUT verb for RenderMaterials Cap

user_profiles
dahlia 2013-04-20 02:08:22 -07:00
parent 258804cc04
commit 233f761779
1 changed files with 5 additions and 1 deletions

View File

@ -131,6 +131,10 @@ namespace OpenSim.Region.OptionalModules.MaterialsDemoModule
IRequestHandler renderMaterialsGetHandler = new RestStreamHandler("GET", capsBase + "/", RenderMaterialsGetCap);
MainServer.Instance.AddStreamHandler(renderMaterialsGetHandler);
// materials viewer seems to use either POST or PUT, so assign POST handler for PUT as well
IRequestHandler renderMaterialsPutHandler = new RestStreamHandler("PUT", capsBase + "/", RenderMaterialsPostCap);
MainServer.Instance.AddStreamHandler(renderMaterialsPutHandler);
}
public void RemoveRegion(Scene scene)