aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/AssetServer
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/AssetServer/RestService.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs
index 0cad643..b13d8ea 100644
--- a/OpenSim/Grid/AssetServer/RestService.cs
+++ b/OpenSim/Grid/AssetServer/RestService.cs
@@ -17,6 +17,7 @@ namespace OpenSim.Grid.AssetServer
17 17
18 public override byte[] Handle(string path, Stream request) 18 public override byte[] Handle(string path, Stream request)
19 { 19 {
20 MainLog.Instance.Verbose("REST", "In Handle");
20 string param = GetParam(path); 21 string param = GetParam(path);
21 byte[] result = new byte[] {}; 22 byte[] result = new byte[] {};
22 try 23 try
@@ -51,6 +52,7 @@ namespace OpenSim.Grid.AssetServer
51 StreamReader sr = new StreamReader(ms); 52 StreamReader sr = new StreamReader(ms);
52 53
53 result = ms.GetBuffer(); 54 result = ms.GetBuffer();
55 MainLog.Instance.Verbose("REST", "Buffer: {0}", result);
54 Array.Resize<byte>(ref result, (int) ms.Length); 56 Array.Resize<byte>(ref result, (int) ms.Length);
55 } 57 }
56 else 58 else
@@ -69,6 +71,7 @@ namespace OpenSim.Grid.AssetServer
69 public GetAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider) 71 public GetAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider)
70 : base("GET", "/assets") 72 : base("GET", "/assets")
71 { 73 {
74 MainLog.Instance.Verbose("REST", "In Get Request");
72 m_assetManager = assetManager; 75 m_assetManager = assetManager;
73 m_assetProvider = assetProvider; 76 m_assetProvider = assetProvider;
74 } 77 }
@@ -104,4 +107,4 @@ namespace OpenSim.Grid.AssetServer
104 m_assetProvider = assetProvider; 107 m_assetProvider = assetProvider;
105 } 108 }
106 } 109 }
107} \ No newline at end of file 110}