diff options
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs index d0388fb..c226a26 100644 --- a/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/OpenSim/OpenSimInventoryFrontendPlugin.cs | |||
@@ -129,6 +129,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
129 | ms.Seek(0, SeekOrigin.Begin); | 129 | ms.Seek(0, SeekOrigin.Begin); |
130 | buffer = ms.GetBuffer(); | 130 | buffer = ms.GetBuffer(); |
131 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 131 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
132 | ms.Close(); | ||
132 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 133 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
133 | } | 134 | } |
134 | else if (storageResponse == BackendResponse.NotFound) | 135 | else if (storageResponse == BackendResponse.NotFound) |
@@ -145,6 +146,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
145 | ms.Seek(0, SeekOrigin.Begin); | 146 | ms.Seek(0, SeekOrigin.Begin); |
146 | buffer = ms.GetBuffer(); | 147 | buffer = ms.GetBuffer(); |
147 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 148 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
149 | ms.Close(); | ||
148 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 150 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
149 | } | 151 | } |
150 | else | 152 | else |
@@ -404,6 +406,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
404 | ms.Seek(0, SeekOrigin.Begin); | 406 | ms.Seek(0, SeekOrigin.Begin); |
405 | buffer = ms.GetBuffer(); | 407 | buffer = ms.GetBuffer(); |
406 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 408 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
409 | ms.Close(); | ||
407 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 410 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
408 | } | 411 | } |
409 | else if (storageResponse == BackendResponse.NotFound) | 412 | else if (storageResponse == BackendResponse.NotFound) |
@@ -415,6 +418,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
415 | ms.Seek(0, SeekOrigin.Begin); | 418 | ms.Seek(0, SeekOrigin.Begin); |
416 | buffer = ms.GetBuffer(); | 419 | buffer = ms.GetBuffer(); |
417 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 420 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
421 | ms.Close(); | ||
418 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 422 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
419 | } | 423 | } |
420 | else | 424 | else |
@@ -459,6 +463,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
459 | ms.Seek(0, SeekOrigin.Begin); | 463 | ms.Seek(0, SeekOrigin.Begin); |
460 | buffer = ms.GetBuffer(); | 464 | buffer = ms.GetBuffer(); |
461 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 465 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
466 | ms.Close(); | ||
462 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 467 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
463 | } | 468 | } |
464 | else if (storageResponse == BackendResponse.NotFound) | 469 | else if (storageResponse == BackendResponse.NotFound) |
@@ -469,6 +474,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
469 | ms.Seek(0, SeekOrigin.Begin); | 474 | ms.Seek(0, SeekOrigin.Begin); |
470 | buffer = ms.GetBuffer(); | 475 | buffer = ms.GetBuffer(); |
471 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 476 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
477 | ms.Close(); | ||
472 | httpResponse.StatusCode = (int) HttpStatusCode.OK; | 478 | httpResponse.StatusCode = (int) HttpStatusCode.OK; |
473 | } | 479 | } |
474 | else | 480 | else |
@@ -695,6 +701,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim | |||
695 | ms.Seek(0, SeekOrigin.Begin); | 701 | ms.Seek(0, SeekOrigin.Begin); |
696 | buffer = ms.GetBuffer(); | 702 | buffer = ms.GetBuffer(); |
697 | Array.Resize<byte>(ref buffer, (int) ms.Length); | 703 | Array.Resize<byte>(ref buffer, (int) ms.Length); |
704 | ms.Close(); | ||
698 | 705 | ||
699 | return buffer; | 706 | return buffer; |
700 | } | 707 | } |