aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-07-29 23:20:50 +0100
committerMelanie2010-07-29 23:20:50 +0100
commite0de8fa308fe4842d57d9f5907822f70fd7171f3 (patch)
tree1dc098e71483799ae458e3aa836eea032a9b26ac
parentMake dataserver() return a 0 when agent id offline, instead of a timeout (diff)
parent* Tweaked WebUtil.PostToService() to help debug an object disposed exception (diff)
downloadopensim-SC_OLD-e0de8fa308fe4842d57d9f5907822f70fd7171f3.zip
opensim-SC_OLD-e0de8fa308fe4842d57d9f5907822f70fd7171f3.tar.gz
opensim-SC_OLD-e0de8fa308fe4842d57d9f5907822f70fd7171f3.tar.bz2
opensim-SC_OLD-e0de8fa308fe4842d57d9f5907822f70fd7171f3.tar.xz
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
-rw-r--r--OpenSim/Framework/WebUtil.cs7
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