From 0d64155bb5cc61145b92fd84b3f459cc213aae01 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Wed, 13 Jul 2011 01:24:22 +0100 Subject: [PATCH] Remove an unused 404 checker since on a 404, GetResponse() throws a WebException rather than proceeding. --- OpenSim/Framework/WebUtil.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 87eeeb697f..f4178019a7 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs @@ -972,9 +972,6 @@ namespace OpenSim.Framework { using (HttpWebResponse resp = (HttpWebResponse)request.GetResponse()) { - if (resp.StatusCode == HttpStatusCode.NotFound) - return deserial; - if (resp.ContentLength != 0) { Stream respStream = resp.GetResponseStream();