Fix the synchronousrestformsrequester so it will successfully handle a response from a server which does not provide a valid content length header

This commit is contained in:
Tom Grimshaw
2010-07-10 19:00:12 -07:00
parent cecd660388
commit cea856cfc2

View File

@@ -99,7 +99,7 @@ namespace OpenSim.Framework.Servers.HttpServer
{
using (WebResponse resp = request.GetResponse())
{
if (resp.ContentLength > 0)
if (resp.ContentLength != 0)
{
Stream respStream = null;
try