enclose GetRequestStream on try/catch

0.9.0-post-fixes
UbitUmarov 2017-05-28 23:51:13 +01:00
parent 687c01b29e
commit 99111e5052
1 changed files with 15 additions and 14 deletions

View File

@ -428,6 +428,9 @@ namespace OpenSim.Framework
if (WebUtil.DebugLevel >= 5)
WebUtil.LogOutgoingDetail(string.Format("SEND {0}: ", reqnum), src);
try
{
using (Stream dst = _request.GetRequestStream())
{
m_log.Debug("[REST]: GetRequestStream is ok");
@ -442,8 +445,6 @@ namespace OpenSim.Framework
}
}
try
{
_response = (HttpWebResponse)_request.GetResponse();
}
catch (WebException e)