Bug fix on POST asset so that the new asset service connector can talk to the old asset server.
parent
c11e047410
commit
99167c68b1
|
@ -90,8 +90,11 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
{
|
{
|
||||||
using (WebResponse resp = request.GetResponse())
|
using (WebResponse resp = request.GetResponse())
|
||||||
{
|
{
|
||||||
XmlSerializer deserializer = new XmlSerializer(typeof (TResponse));
|
if (resp.ContentLength > 0)
|
||||||
deserial = (TResponse) deserializer.Deserialize(resp.GetResponseStream());
|
{
|
||||||
|
XmlSerializer deserializer = new XmlSerializer(typeof(TResponse));
|
||||||
|
deserial = (TResponse)deserializer.Deserialize(resp.GetResponseStream());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (System.InvalidOperationException)
|
catch (System.InvalidOperationException)
|
||||||
|
|
Loading…
Reference in New Issue