diff options
author | Freaky Tech | 2015-03-05 23:52:13 +0100 |
---|---|---|
committer | BlueWall | 2015-03-05 18:15:42 -0500 |
commit | 4de10a45e9136c75e33f31b448720db35c2c23b1 (patch) | |
tree | c31fa74823de340a22b51422c98714534227f28b /OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs | |
parent | adjusted new UserManagementModule to accept the HG UUI test harness (diff) | |
download | opensim-SC-4de10a45e9136c75e33f31b448720db35c2c23b1.zip opensim-SC-4de10a45e9136c75e33f31b448720db35c2c23b1.tar.gz opensim-SC-4de10a45e9136c75e33f31b448720db35c2c23b1.tar.bz2 opensim-SC-4de10a45e9136c75e33f31b448720db35c2c23b1.tar.xz |
revised GetMesh to not use intermediate base64 coding scheme
it delivers binary and has binary as input.
base64 intermediate coding makes no sense.
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Diffstat (limited to 'OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs')
-rw-r--r-- | OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs index 9c53862..19de3cf 100644 --- a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs +++ b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshServerConnector.cs | |||
@@ -25,16 +25,13 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | ||
30 | using Nini.Config; | 28 | using Nini.Config; |
31 | using OpenSim.Server.Base; | 29 | using OpenMetaverse; |
32 | using OpenSim.Services.Interfaces; | ||
33 | using OpenSim.Framework.Servers.HttpServer; | 30 | using OpenSim.Framework.Servers.HttpServer; |
31 | using OpenSim.Server.Base; | ||
34 | using OpenSim.Server.Handlers.Base; | 32 | using OpenSim.Server.Handlers.Base; |
35 | using OpenSim.Framework.Servers; | 33 | using OpenSim.Services.Interfaces; |
36 | 34 | using System; | |
37 | using OpenMetaverse; | ||
38 | 35 | ||
39 | namespace OpenSim.Capabilities.Handlers | 36 | namespace OpenSim.Capabilities.Handlers |
40 | { | 37 | { |
@@ -65,8 +62,15 @@ namespace OpenSim.Capabilities.Handlers | |||
65 | if (m_AssetService == null) | 62 | if (m_AssetService == null) |
66 | throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName)); | 63 | throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName)); |
67 | 64 | ||
65 | string rurl = serverConfig.GetString("GetMeshRedirectURL"); | ||
66 | |||
67 | server.AddStreamHandler( | ||
68 | new GetTextureHandler("/CAPS/GetMesh/" /*+ UUID.Random() */, m_AssetService, "GetMesh", null, rurl)); | ||
69 | |||
70 | rurl = serverConfig.GetString("GetMesh2RedirectURL"); | ||
71 | |||
68 | server.AddStreamHandler( | 72 | server.AddStreamHandler( |
69 | new GetMeshHandler("/CAPS/GetMesh/" /*+ UUID.Random() */, m_AssetService, "GetMesh", null)); | 73 | new GetTextureHandler("/CAPS/GetMesh2/" /*+ UUID.Random() */, m_AssetService, "GetMesh2", null, rurl)); |
70 | } | 74 | } |
71 | } | 75 | } |
72 | } \ No newline at end of file | 76 | } \ No newline at end of file |