let StreamReader be in using statements

This commit is contained in:
UbitUmarov
2017-05-07 00:47:45 +01:00
parent de55ad9545
commit d0912b6151
22 changed files with 81 additions and 88 deletions

View File

@@ -185,8 +185,9 @@ namespace OpenSim.Region.ClientStack.Linden
protected override byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
StreamReader reader = new StreamReader(request);
string message = reader.ReadToEnd();
string message;
using(StreamReader reader = new StreamReader(request))
message = reader.ReadToEnd();
OSD osd = OSDParser.DeserializeLLSDXml(message);