aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 84af9f6..f790477 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -173,12 +173,8 @@ namespace OpenSim.Framework.Servers
173 173
174 string responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse); 174 string responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
175 175
176 // This must be absolutely fuggliest hack in this project. Don't just stand there, DO SOMETHING!
177 responseString = Regex.Replace(responseString, "utf-16", "utf-8");
178
179 byte[] buffer = Encoding.UTF8.GetBytes(responseString); 176 byte[] buffer = Encoding.UTF8.GetBytes(responseString);
180 177
181
182 response.SendChunked = false; 178 response.SendChunked = false;
183 response.ContentLength64 = buffer.Length; 179 response.ContentLength64 = buffer.Length;
184 response.ContentEncoding = Encoding.UTF8; 180 response.ContentEncoding = Encoding.UTF8;