aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-rw-r--r--OpenSim/Framework/WebUtil.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 0b99e82..e9a1e03 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -976,9 +976,9 @@ namespace OpenSim.Framework
976 } 976 }
977 } 977 }
978 978
979 using (WebResponse resp = request.GetResponse()) 979 try
980 { 980 {
981 try 981 using (WebResponse resp = request.GetResponse())
982 { 982 {
983 if (resp.ContentLength > 0) 983 if (resp.ContentLength > 0)
984 { 984 {
@@ -988,11 +988,11 @@ namespace OpenSim.Framework
988 respStream.Close(); 988 respStream.Close();
989 } 989 }
990 } 990 }
991 catch (System.InvalidOperationException) 991 }
992 { 992 catch (System.InvalidOperationException)
993 // This is what happens when there is invalid XML 993 {
994 m_log.WarnFormat("[SynchronousRestObjectRequester]: Invalid XML {0} {1}", requestUrl, typeof(TResponse).ToString()); 994 // This is what happens when there is invalid XML
995 } 995 m_log.WarnFormat("[SynchronousRestObjectRequester]: Invalid XML {0} {1}", requestUrl, typeof(TResponse).ToString());
996 } 996 }
997 return deserial; 997 return deserial;
998 } 998 }