diff options
author | UbitUmarov | 2017-05-07 04:21:33 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-07 04:21:33 +0100 |
commit | 11f6d28a0631d7bf96eed220dc58ab0824fb8f57 (patch) | |
tree | c2c08d0908e332983284299a6739c8bc0c136078 /OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs | |
parent | merge fix (diff) | |
parent | let StreamReader be in using statements (diff) | |
download | opensim-SC-11f6d28a0631d7bf96eed220dc58ab0824fb8f57.zip opensim-SC-11f6d28a0631d7bf96eed220dc58ab0824fb8f57.tar.gz opensim-SC-11f6d28a0631d7bf96eed220dc58ab0824fb8f57.tar.bz2 opensim-SC-11f6d28a0631d7bf96eed220dc58ab0824fb8f57.tar.xz |
fix merge
Diffstat (limited to 'OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs b/OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs index d3ea7e2..4f03cf4 100644 --- a/OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Authentication/AuthenticationServerPostHandler.cs | |||
@@ -82,11 +82,11 @@ namespace OpenSim.Server.Handlers.Authentication | |||
82 | switch (p[0]) | 82 | switch (p[0]) |
83 | { | 83 | { |
84 | case "plain": | 84 | case "plain": |
85 | StreamReader sr = new StreamReader(request); | 85 | string body; |
86 | string body = sr.ReadToEnd(); | 86 | using(StreamReader sr = new StreamReader(request)) |
87 | sr.Close(); | 87 | body = sr.ReadToEnd(); |
88 | |||
89 | return DoPlainMethods(body); | 88 | return DoPlainMethods(body); |
89 | |||
90 | case "crypt": | 90 | case "crypt": |
91 | byte[] buffer = new byte[request.Length]; | 91 | byte[] buffer = new byte[request.Length]; |
92 | long length = request.Length; | 92 | long length = request.Length; |