aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorTom Grimshaw2010-07-10 19:00:12 -0700
committerTom Grimshaw2010-07-10 19:00:12 -0700
commitcea856cfc294fb546332bb86abe9f70d791013d5 (patch)
treea500629d060e2e88e7ca93be22eb70be9b62d664 /OpenSim
parentFix an issue where the SynchronousRestObjectRequester will fail if a webserve... (diff)
downloadopensim-SC_OLD-cea856cfc294fb546332bb86abe9f70d791013d5.zip
opensim-SC_OLD-cea856cfc294fb546332bb86abe9f70d791013d5.tar.gz
opensim-SC_OLD-cea856cfc294fb546332bb86abe9f70d791013d5.tar.bz2
opensim-SC_OLD-cea856cfc294fb546332bb86abe9f70d791013d5.tar.xz
Fix the synchronousrestformsrequester so it will successfully handle a response from a server which does not provide a valid content length header
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
index b0cf34d..92a6caa 100644
--- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
+++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs
@@ -99,7 +99,7 @@ namespace OpenSim.Framework.Servers.HttpServer
99 { 99 {
100 using (WebResponse resp = request.GetResponse()) 100 using (WebResponse resp = request.GetResponse())
101 { 101 {
102 if (resp.ContentLength > 0) 102 if (resp.ContentLength != 0)
103 { 103 {
104 Stream respStream = null; 104 Stream respStream = null;
105 try 105 try