aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
authorDiva Canto2011-05-14 12:56:50 -0700
committerDiva Canto2011-05-14 12:56:50 -0700
commita3aa839d751b04f1898b728fc9b8bc9e65352b21 (patch)
tree76f55f2762595f47763b8a21f3234fc0627b841f /OpenSim/Framework/WebUtil.cs
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-a3aa839d751b04f1898b728fc9b8bc9e65352b21.zip
opensim-SC_OLD-a3aa839d751b04f1898b728fc9b8bc9e65352b21.tar.gz
opensim-SC_OLD-a3aa839d751b04f1898b728fc9b8bc9e65352b21.tar.bz2
opensim-SC_OLD-a3aa839d751b04f1898b728fc9b8bc9e65352b21.tar.xz
Stop spamming Nebadon's console when assets aren't found in the asset server.
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-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();