some conditional dispose on http requests inputstream

This commit is contained in:
UbitUmarov
2017-05-08 00:40:15 +01:00
parent 8ef43e5fb3
commit 604b966d84
2 changed files with 8 additions and 1 deletions

View File

@@ -686,7 +686,8 @@ namespace OpenSim.Framework.Servers.HttpServer
}
}
request.InputStream.Dispose();
if(request.InputStream.CanRead)
request.InputStream.Dispose();
if (buffer != null)
{