diff options
author | Tom Grimshaw | 2010-07-10 18:48:49 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-07-10 18:48:49 -0700 |
commit | cecd660388e0cda34115be44955758e8221a77d1 (patch) | |
tree | e1f97db7b8c01816dfb6bba3608efda088ad39cd /OpenSim | |
parent | Make taken items go back to the folder they came from (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs | 2 |
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)); |