mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
let StreamReader be in using statements
This commit is contained in:
@@ -60,9 +60,9 @@ namespace OpenSim.Server.Handlers.GridUser
|
||||
protected override byte[] ProcessRequest(string path, Stream requestData,
|
||||
IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
|
||||
{
|
||||
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();
|
||||
|
||||
//m_log.DebugFormat("[XXX]: query String: {0}", body);
|
||||
|
||||
Reference in New Issue
Block a user