aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/XmlRpcCS/SimpleHttpRequest.cs
diff options
context:
space:
mode:
authorlbsa712007-07-05 18:31:59 +0000
committerlbsa712007-07-05 18:31:59 +0000
commit8df2119bc766132a36edb988d0963196694c4aa3 (patch)
treede10688a3b2255667a9190a6bf5a0483ab34a4d2 /Common/XmlRpcCS/SimpleHttpRequest.cs
parent* Making trunk compile again for CC.net (diff)
downloadopensim-SC-8df2119bc766132a36edb988d0963196694c4aa3.zip
opensim-SC-8df2119bc766132a36edb988d0963196694c4aa3.tar.gz
opensim-SC-8df2119bc766132a36edb988d0963196694c4aa3.tar.bz2
opensim-SC-8df2119bc766132a36edb988d0963196694c4aa3.tar.xz
* Changed XmlRpc to specify utf-8
Diffstat (limited to '')
-rw-r--r--Common/XmlRpcCS/SimpleHttpRequest.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Common/XmlRpcCS/SimpleHttpRequest.cs b/Common/XmlRpcCS/SimpleHttpRequest.cs
index 58a5ae4..aa260f4 100644
--- a/Common/XmlRpcCS/SimpleHttpRequest.cs
+++ b/Common/XmlRpcCS/SimpleHttpRequest.cs
@@ -31,6 +31,7 @@ namespace Nwc.XmlRpc
31 using System.IO; 31 using System.IO;
32 using System.Net.Sockets; 32 using System.Net.Sockets;
33 using System.Collections; 33 using System.Collections;
34 using System.Text;
34 35
35 ///<summary>Very basic HTTP request handler.</summary> 36 ///<summary>Very basic HTTP request handler.</summary>
36 ///<remarks>This class is designed to accept a TcpClient and treat it as an HTTP request. 37 ///<remarks>This class is designed to accept a TcpClient and treat it as an HTTP request.
@@ -55,8 +56,10 @@ namespace Nwc.XmlRpc
55 public SimpleHttpRequest(TcpClient client) 56 public SimpleHttpRequest(TcpClient client)
56 { 57 {
57 _client = client; 58 _client = client;
58 _output = new StreamWriter(client.GetStream()); 59
59 _input = new StreamReader(client.GetStream()); 60 _output = new StreamWriter(client.GetStream(), Encoding.UTF8 );
61 _input = new StreamReader(client.GetStream(), Encoding.UTF8 );
62
60 GetRequestMethod(); 63 GetRequestMethod();
61 GetRequestHeaders(); 64 GetRequestHeaders();
62 } 65 }