enclose GetRequestStream on try/catch
parent
687c01b29e
commit
99111e5052
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue