aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJohn Hurliman2010-07-29 14:39:08 -0700
committerJohn Hurliman2010-07-29 14:39:08 -0700
commit550c3572a1b33e26b0bfe260f80fd499169b6420 (patch)
tree9d019f44432601428cc14790ae6081b5e480b312 /OpenSim/Framework
parentAllow gods and estate managers/owners to be unaffected by parcel bans (diff)
downloadopensim-SC-550c3572a1b33e26b0bfe260f80fd499169b6420.zip
opensim-SC-550c3572a1b33e26b0bfe260f80fd499169b6420.tar.gz
opensim-SC-550c3572a1b33e26b0bfe260f80fd499169b6420.tar.bz2
opensim-SC-550c3572a1b33e26b0bfe260f80fd499169b6420.tar.xz
* Tweaked WebUtil.PostToService() to help debug an object disposed exception
Diffstat (limited to 'OpenSim/Framework')
-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