some conditional dispose on http requests inputstream

This commit is contained in:
UbitUmarov
2017-05-08 00:54:17 +01:00
parent b20778d8ec
commit 6c79cc652b
2 changed files with 8 additions and 1 deletions

View File

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