diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 9f581ca..9935e3c 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -306,6 +306,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
306 | StreamReader reader = new StreamReader(inputStream, encoding); | 306 | StreamReader reader = new StreamReader(inputStream, encoding); |
307 | 307 | ||
308 | string requestBody = reader.ReadToEnd(); | 308 | string requestBody = reader.ReadToEnd(); |
309 | reader.Close(); | ||
309 | keysvals.Add("body", requestBody); | 310 | keysvals.Add("body", requestBody); |
310 | 311 | ||
311 | httpResponse.StatusCode = 200; | 312 | httpResponse.StatusCode = 200; |
@@ -492,6 +493,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
492 | StreamReader reader = new StreamReader(inputStream, encoding); | 493 | StreamReader reader = new StreamReader(inputStream, encoding); |
493 | 494 | ||
494 | string requestBody = reader.ReadToEnd(); | 495 | string requestBody = reader.ReadToEnd(); |
496 | reader.Close(); | ||
495 | keysvals.Add("body", requestBody); | 497 | keysvals.Add("body", requestBody); |
496 | 498 | ||
497 | httpResponse.StatusCode = 200; | 499 | httpResponse.StatusCode = 200; |