mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Bug fix on POST asset so that the new asset service connector can talk to the old asset server.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user