diff options
author | Tom Grimshaw | 2010-07-10 19:00:12 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-07-10 19:00:12 -0700 |
commit | cea856cfc294fb546332bb86abe9f70d791013d5 (patch) | |
tree | a500629d060e2e88e7ca93be22eb70be9b62d664 /OpenSim | |
parent | Fix an issue where the SynchronousRestObjectRequester will fail if a webserve... (diff) | |
download | opensim-SC-cea856cfc294fb546332bb86abe9f70d791013d5.zip opensim-SC-cea856cfc294fb546332bb86abe9f70d791013d5.tar.gz opensim-SC-cea856cfc294fb546332bb86abe9f70d791013d5.tar.bz2 opensim-SC-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.cs | 2 |
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 |