aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
diff options
context:
space:
mode:
authorDiva Canto2009-10-03 16:27:55 -0700
committerDiva Canto2009-10-03 16:27:55 -0700
commitb6920267f0e286a78f792c844ff30021044d7e9b (patch)
tree395c98f953e03a20758c8dab88daca728a65e129 /OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
parentFixed interface between the Messaging server and the grid server. (diff)
downloadopensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.zip
opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.gz
opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.bz2
opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.xz
Close was being called to early on the Memory stream.
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
index e76d80e..11df103 100644
--- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
+++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
@@ -62,7 +62,6 @@ namespace OpenSim.Framework.Servers.HttpServer
62 writer.Write(obj); 62 writer.Write(obj);
63 writer.Flush(); 63 writer.Flush();
64 } 64 }
65 buffer.Close();
66 65
67 length = (int)obj.Length; 66 length = (int)obj.Length;
68 request.ContentLength = length; 67 request.ContentLength = length;
@@ -80,6 +79,8 @@ namespace OpenSim.Framework.Servers.HttpServer
80 { 79 {
81 if (requestStream != null) 80 if (requestStream != null)
82 requestStream.Close(); 81 requestStream.Close();
82 buffer.Close();
83
83 } 84 }
84 } 85 }
85 86