Thank you kindly, Diva, for a patch that:
Removed unnecessary dependency from Get/PostAssetHandlers to OpenAsset_Main0.6.0-stable
parent
c8db23d456
commit
557c7de2ec
|
@ -102,8 +102,8 @@ namespace OpenSim.Grid.AssetServer
|
|||
|
||||
protected void AddHttpHandlers()
|
||||
{
|
||||
m_httpServer.AddStreamHandler(new GetAssetStreamHandler(this, m_assetProvider));
|
||||
m_httpServer.AddStreamHandler(new PostAssetStreamHandler(this, m_assetProvider));
|
||||
m_httpServer.AddStreamHandler(new GetAssetStreamHandler(m_assetProvider));
|
||||
m_httpServer.AddStreamHandler(new PostAssetStreamHandler(m_assetProvider));
|
||||
}
|
||||
|
||||
public byte[] GetAssetData(UUID assetID, bool isTexture)
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace OpenSim.Grid.AssetServer
|
|||
/// </summary>
|
||||
/// <param name="assetManager"></param>
|
||||
/// <param name="assetProvider"></param>
|
||||
public GetAssetStreamHandler(OpenAsset_Main assetManager, IAssetProviderPlugin assetProvider)
|
||||
public GetAssetStreamHandler(IAssetProviderPlugin assetProvider)
|
||||
: base("GET", "/assets")
|
||||
{
|
||||
m_log.Info("[REST]: In Get Request");
|
||||
|
@ -142,7 +142,7 @@ namespace OpenSim.Grid.AssetServer
|
|||
return new byte[] {};
|
||||
}
|
||||
|
||||
public PostAssetStreamHandler(OpenAsset_Main assetManager, IAssetProviderPlugin assetProvider)
|
||||
public PostAssetStreamHandler(IAssetProviderPlugin assetProvider)
|
||||
: base("POST", "/assets")
|
||||
{
|
||||
// m_assetManager = assetManager;
|
||||
|
|
Loading…
Reference in New Issue