aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/WebUtil.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 27a646a..5628376 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -979,8 +979,11 @@ namespace OpenSim.Framework
979 979
980 try 980 try
981 { 981 {
982 using (WebResponse resp = request.GetResponse()) 982 using (HttpWebResponse resp = (HttpWebResponse)request.GetResponse())
983 { 983 {
984 if (resp.StatusCode == HttpStatusCode.NotFound)
985 return deserial;
986
984 if (resp.ContentLength != 0) 987 if (resp.ContentLength != 0)
985 { 988 {
986 Stream respStream = resp.GetResponseStream(); 989 Stream respStream = resp.GetResponseStream();