diff options
Diffstat (limited to 'OpenSim/Grid/AssetServer')
-rw-r--r-- | OpenSim/Grid/AssetServer/RestService.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index 29def9e..1f44686 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs | |||
@@ -54,14 +54,7 @@ namespace OpenSim.Grid.AssetServer | |||
54 | 54 | ||
55 | if (p.Length > 0) | 55 | if (p.Length > 0) |
56 | { | 56 | { |
57 | LLUUID assetID; | 57 | LLUUID assetID = LLUUID.Parse(p[0]); |
58 | bool isTexture = false; | ||
59 | LLUUID.TryParse(p[0], out assetID); | ||
60 | if (p.Length > 1) | ||
61 | { | ||
62 | if (string.Compare(p[1], "texture", true) == 0) | ||
63 | isTexture = true; | ||
64 | } | ||
65 | 58 | ||
66 | MainLog.Instance.Verbose("REST", "GET:/asset fetch param={0} UUID={1}", param, assetID); | 59 | MainLog.Instance.Verbose("REST", "GET:/asset fetch param={0} UUID={1}", param, assetID); |
67 | AssetBase asset = m_assetProvider.FetchAsset(assetID); | 60 | AssetBase asset = m_assetProvider.FetchAsset(assetID); |