Bug fix on POST asset so that the new asset service connector can talk to the old asset server.

0.6.6-post-fixes
diva 2009-05-15 21:11:37 +00:00
parent c11e047410
commit 99167c68b1
1 changed files with 5 additions and 2 deletions

View File

@ -90,8 +90,11 @@ namespace OpenSim.Framework.Servers.HttpServer
{
using (WebResponse resp = request.GetResponse())
{
XmlSerializer deserializer = new XmlSerializer(typeof (TResponse));
deserial = (TResponse) deserializer.Deserialize(resp.GetResponseStream());
if (resp.ContentLength > 0)
{
XmlSerializer deserializer = new XmlSerializer(typeof(TResponse));
deserial = (TResponse)deserializer.Deserialize(resp.GetResponseStream());
}
}
}
catch (System.InvalidOperationException)