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/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs | |
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/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs')
-rw-r--r-- | OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs b/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs index af00770..51f3ec1 100644 --- a/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs +++ b/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs | |||
@@ -115,9 +115,10 @@ namespace OpenSim.Groups | |||
115 | protected override byte[] ProcessRequest(string path, Stream requestData, | 115 | protected override byte[] ProcessRequest(string path, Stream requestData, |
116 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 116 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
117 | { | 117 | { |
118 | StreamReader sr = new StreamReader(requestData); | 118 | string body; |
119 | string body = sr.ReadToEnd(); | 119 | using(StreamReader sr = new StreamReader(requestData)) |
120 | sr.Close(); | 120 | body = sr.ReadToEnd(); |
121 | |||
121 | body = body.Trim(); | 122 | body = body.Trim(); |
122 | 123 | ||
123 | //m_log.DebugFormat("[XXX]: query String: {0}", body); | 124 | //m_log.DebugFormat("[XXX]: query String: {0}", body); |