diff options
Diffstat (limited to '')
-rw-r--r-- | Common/XmlRpcCS/SimpleHttpRequest.cs | 7 |
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 | } |