aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-05-07 00:47:45 +0100
committerUbitUmarov2017-05-07 00:47:45 +0100
commitd0912b61516914f810ba306641aaaa813134462e (patch)
treefc2592d3f9514badd547ab0bad6cf6c4b6097f05 /OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs
parent oops closed too soon (diff)
downloadopensim-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.cs7
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);