diff options
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index e20866e..d16f9bf 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -139,8 +139,9 @@ namespace OpenSim.Framework | |||
139 | request.ContentLength = requestData.Length; | 139 | request.ContentLength = requestData.Length; |
140 | request.ContentType = "application/x-www-form-urlencoded"; | 140 | request.ContentType = "application/x-www-form-urlencoded"; |
141 | 141 | ||
142 | using (Stream requestStream = request.GetRequestStream()) | 142 | Stream requestStream = request.GetRequestStream(); |
143 | requestStream.Write(requestData, 0, requestData.Length); | 143 | requestStream.Write(requestData, 0, requestData.Length); |
144 | requestStream.Close(); | ||
144 | 145 | ||
145 | using (WebResponse response = request.GetResponse()) | 146 | using (WebResponse response = request.GetResponse()) |
146 | { | 147 | { |
@@ -169,7 +170,7 @@ namespace OpenSim.Framework | |||
169 | } | 170 | } |
170 | catch (Exception ex) | 171 | catch (Exception ex) |
171 | { | 172 | { |
172 | m_log.Warn("POST to URL " + url + " failed: " + ex.Message); | 173 | m_log.Warn("POST to URL " + url + " failed: " + ex); |
173 | errorMessage = ex.Message; | 174 | errorMessage = ex.Message; |
174 | } | 175 | } |
175 | 176 | ||