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/Estate/EstateDataRobustConnector.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/Server/Handlers/Estate/EstateDataRobustConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Estate/EstateDataRobustConnector.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/Estate/EstateDataRobustConnector.cs b/OpenSim/Server/Handlers/Estate/EstateDataRobustConnector.cs index e0c2810..b7558ec 100644 --- a/OpenSim/Server/Handlers/Estate/EstateDataRobustConnector.cs +++ b/OpenSim/Server/Handlers/Estate/EstateDataRobustConnector.cs | |||
@@ -282,9 +282,10 @@ namespace OpenSim.Server.Handlers | |||
282 | // /estates/estate/?eid=int®ion=uuid | 282 | // /estates/estate/?eid=int®ion=uuid |
283 | if ("estate".Equals(resource)) | 283 | if ("estate".Equals(resource)) |
284 | { | 284 | { |
285 | StreamReader sr = new StreamReader(request); | 285 | string body; |
286 | string body = sr.ReadToEnd(); | 286 | using(StreamReader sr = new StreamReader(request)) |
287 | sr.Close(); | 287 | body = sr.ReadToEnd(); |
288 | |||
288 | body = body.Trim(); | 289 | body = body.Trim(); |
289 | 290 | ||
290 | Dictionary<string, object> requestData = ServerUtils.ParseQueryString(body); | 291 | Dictionary<string, object> requestData = ServerUtils.ParseQueryString(body); |