mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
let StreamReader be in using statements
This commit is contained in:
@@ -72,9 +72,9 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
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();
|
||||
|
||||
// We need to check the authorization header
|
||||
|
||||
Reference in New Issue
Block a user