diff options
author | UbitUmarov | 2017-05-07 00:47:45 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-07 00:47:45 +0100 |
commit | d0912b61516914f810ba306641aaaa813134462e (patch) | |
tree | fc2592d3f9514badd547ab0bad6cf6c4b6097f05 /OpenSim/Server/Handlers/UserAccounts | |
parent | oops closed too soon (diff) | |
download | opensim-SC-d0912b61516914f810ba306641aaaa813134462e.zip opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.gz opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.bz2 opensim-SC-d0912b61516914f810ba306641aaaa813134462e.tar.xz |
let StreamReader be in using statements
Diffstat (limited to 'OpenSim/Server/Handlers/UserAccounts')
-rw-r--r-- | OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs index a02255f..bc12ef9 100644 --- a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs +++ b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs | |||
@@ -72,9 +72,9 @@ namespace OpenSim.Server.Handlers.UserAccounts | |||
72 | protected override byte[] ProcessRequest(string path, Stream requestData, | 72 | protected override byte[] ProcessRequest(string path, Stream requestData, |
73 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 73 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
74 | { | 74 | { |
75 | StreamReader sr = new StreamReader(requestData); | 75 | string body; |
76 | string body = sr.ReadToEnd(); | 76 | using(StreamReader sr = new StreamReader(requestData)) |
77 | sr.Close(); | 77 | body = sr.ReadToEnd(); |
78 | body = body.Trim(); | 78 | body = body.Trim(); |
79 | 79 | ||
80 | // We need to check the authorization header | 80 | // We need to check the authorization header |