aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer
diff options
context:
space:
mode:
authorTom Grimshaw2010-07-10 18:48:49 -0700
committerTom Grimshaw2010-07-10 18:48:49 -0700
commitcecd660388e0cda34115be44955758e8221a77d1 (patch)
treee1f97db7b8c01816dfb6bba3608efda088ad39cd /OpenSim/Framework/Servers/HttpServer
parentMake taken items go back to the folder they came from (diff)
downloadopensim-SC_OLD-cecd660388e0cda34115be44955758e8221a77d1.zip
opensim-SC_OLD-cecd660388e0cda34115be44955758e8221a77d1.tar.gz
opensim-SC_OLD-cecd660388e0cda34115be44955758e8221a77d1.tar.bz2
opensim-SC_OLD-cecd660388e0cda34115be44955758e8221a77d1.tar.xz
Fix an issue where the SynchronousRestObjectRequester will fail if a webserver does not report a content length (-1), but the content is still valid
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs
index f07f7ab..077a1e8 100644
--- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs
+++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs
@@ -118,7 +118,7 @@ namespace OpenSim.Framework.Servers.HttpServer
118 { 118 {
119 using (WebResponse resp = request.GetResponse()) 119 using (WebResponse resp = request.GetResponse())
120 { 120 {
121 if (resp.ContentLength > 0) 121 if (resp.ContentLength != 0)
122 { 122 {
123 Stream respStream = resp.GetResponseStream(); 123 Stream respStream = resp.GetResponseStream();
124 XmlSerializer deserializer = new XmlSerializer(typeof(TResponse)); 124 XmlSerializer deserializer = new XmlSerializer(typeof(TResponse));