aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-13 01:24:22 +0100
committerJustin Clark-Casey (justincc)2011-07-13 01:24:22 +0100
commit0d64155bb5cc61145b92fd84b3f459cc213aae01 (patch)
tree671628a805249aaedf3434a93054bfbbd7866051 /OpenSim/Framework/WebUtil.cs
parentif a SynchronousRestObjectRequester request fails, then unless it's due to a ... (diff)
downloadopensim-SC_OLD-0d64155bb5cc61145b92fd84b3f459cc213aae01.zip
opensim-SC_OLD-0d64155bb5cc61145b92fd84b3f459cc213aae01.tar.gz
opensim-SC_OLD-0d64155bb5cc61145b92fd84b3f459cc213aae01.tar.bz2
opensim-SC_OLD-0d64155bb5cc61145b92fd84b3f459cc213aae01.tar.xz
Remove an unused 404 checker since on a 404, GetResponse() throws a WebException rather than proceeding.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/WebUtil.cs3
1 files changed, 0 insertions, 3 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 87eeeb6..f417801 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -972,9 +972,6 @@ namespace OpenSim.Framework
972 { 972 {
973 using (HttpWebResponse resp = (HttpWebResponse)request.GetResponse()) 973 using (HttpWebResponse resp = (HttpWebResponse)request.GetResponse())
974 { 974 {
975 if (resp.StatusCode == HttpStatusCode.NotFound)
976 return deserial;
977
978 if (resp.ContentLength != 0) 975 if (resp.ContentLength != 0)
979 { 976 {
980 Stream respStream = resp.GetResponseStream(); 977 Stream respStream = resp.GetResponseStream();