Sequencing the using and try clauses as they were before, but this shows that that obsolete function is not catching 404's as it should...
parent
42bfab84b8
commit
9e310a0c0f
|
@ -976,9 +976,9 @@ namespace OpenSim.Framework
|
|||
}
|
||||
}
|
||||
|
||||
using (WebResponse resp = request.GetResponse())
|
||||
{
|
||||
try
|
||||
{
|
||||
using (WebResponse resp = request.GetResponse())
|
||||
{
|
||||
if (resp.ContentLength > 0)
|
||||
{
|
||||
|
@ -988,12 +988,12 @@ namespace OpenSim.Framework
|
|||
respStream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (System.InvalidOperationException)
|
||||
{
|
||||
// This is what happens when there is invalid XML
|
||||
m_log.WarnFormat("[SynchronousRestObjectRequester]: Invalid XML {0} {1}", requestUrl, typeof(TResponse).ToString());
|
||||
}
|
||||
}
|
||||
return deserial;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue