mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
let StreamReader be in using statements
This commit is contained in:
@@ -102,9 +102,9 @@ namespace OpenSim.Server.Handlers.MapImage
|
||||
public override byte[] Handle(string path, Stream requestData, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
|
||||
{
|
||||
// m_log.DebugFormat("[MAP SERVICE IMAGE HANDLER]: Received {0}", path);
|
||||
StreamReader sr = new StreamReader(requestData);
|
||||
string body = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
string body;
|
||||
using(StreamReader sr = new StreamReader(requestData))
|
||||
body = sr.ReadToEnd();
|
||||
body = body.Trim();
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user