aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Hypergrid
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-07-13 01:03:28 +0100
committerJustin Clark-Casey (justincc)2012-07-13 01:03:28 +0100
commit884d603cac6c3fe0cdbd199e13e1514146ff82bc (patch)
tree00701964cd4053700c5f37c48c8a5196928b00d1 /OpenSim/Server/Handlers/Hypergrid
parentDon't cache regions data on the other unused LocalGridServiceConnector that t... (diff)
downloadopensim-SC-884d603cac6c3fe0cdbd199e13e1514146ff82bc.zip
opensim-SC-884d603cac6c3fe0cdbd199e13e1514146ff82bc.tar.gz
opensim-SC-884d603cac6c3fe0cdbd199e13e1514146ff82bc.tar.bz2
opensim-SC-884d603cac6c3fe0cdbd199e13e1514146ff82bc.tar.xz
Rather than instantiating a UTF8 encoding everywhere when we want to supress the BOM, use a single Util.UTF8NoBomEncoding.
This class is thread-safe (as evidenced by the provision of the system-wide Encoding.UTF8 which does not suppress BOM on output).
Diffstat (limited to 'OpenSim/Server/Handlers/Hypergrid')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
index c2f127c..0aa2729 100644
--- a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
@@ -279,13 +279,11 @@ namespace OpenSim.Server.Handlers.Hypergrid
279 } 279 }
280 280
281 string xmlString = ServerUtils.BuildXmlResponse(result); 281 string xmlString = ServerUtils.BuildXmlResponse(result);
282 //m_log.DebugFormat("[GRID HANDLER]: resp string: {0}", xmlString);
283 UTF8Encoding encoding = new UTF8Encoding();
284 return encoding.GetBytes(xmlString);
285 282
283 //m_log.DebugFormat("[GRID HANDLER]: resp string: {0}", xmlString);
284 return Util.UTF8NoBomEncoding.GetBytes(xmlString);
286 } 285 }
287 286
288
289 #endregion 287 #endregion
290 288
291 #region Misc 289 #region Misc