Fix an issue where the SynchronousRestObjectRequester will fail if a webserver does not report a content length (-1), but the content is still valid

avinationmerge
Tom Grimshaw 2010-07-10 18:48:49 -07:00
parent 8aa5f30082
commit cecd660388
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ namespace OpenSim.Framework.Servers.HttpServer
{ {
using (WebResponse resp = request.GetResponse()) using (WebResponse resp = request.GetResponse())
{ {
if (resp.ContentLength > 0) if (resp.ContentLength != 0)
{ {
Stream respStream = resp.GetResponseStream(); Stream respStream = resp.GetResponseStream();
XmlSerializer deserializer = new XmlSerializer(typeof(TResponse)); XmlSerializer deserializer = new XmlSerializer(typeof(TResponse));