Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim

prebuild-update
Melanie 2010-07-29 23:20:50 +01:00
commit e0de8fa308
1 changed files with 4 additions and 3 deletions

View File

@ -139,8 +139,9 @@ namespace OpenSim.Framework
request.ContentLength = requestData.Length;
request.ContentType = "application/x-www-form-urlencoded";
using (Stream requestStream = request.GetRequestStream())
Stream requestStream = request.GetRequestStream();
requestStream.Write(requestData, 0, requestData.Length);
requestStream.Close();
using (WebResponse response = request.GetResponse())
{
@ -169,7 +170,7 @@ namespace OpenSim.Framework
}
catch (Exception ex)
{
m_log.Warn("POST to URL " + url + " failed: " + ex.Message);
m_log.Warn("POST to URL " + url + " failed: " + ex);
errorMessage = ex.Message;
}