diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:37:13 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:37:13 +0100 |
| commit | 65bd052f3e8682d177520af57db1c8ef5cb33262 (patch) | |
| tree | f5ec943937913cc7e275017e4a1055147d8ccef5 /SocketHttpListener/Net/HttpListenerResponse.Managed.cs | |
| parent | a36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (diff) | |
ReSharper conform to 'var' settings
Diffstat (limited to 'SocketHttpListener/Net/HttpListenerResponse.Managed.cs')
| -rw-r--r-- | SocketHttpListener/Net/HttpListenerResponse.Managed.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SocketHttpListener/Net/HttpListenerResponse.Managed.cs b/SocketHttpListener/Net/HttpListenerResponse.Managed.cs index 198cdcf76..9f9b8384d 100644 --- a/SocketHttpListener/Net/HttpListenerResponse.Managed.cs +++ b/SocketHttpListener/Net/HttpListenerResponse.Managed.cs @@ -263,8 +263,8 @@ namespace SocketHttpListener.Net ComputeCookies(); } - Encoding encoding = _textEncoding.GetDefaultEncoding(); - StreamWriter writer = new StreamWriter(ms, encoding, 256); + var encoding = _textEncoding.GetDefaultEncoding(); + var writer = new StreamWriter(ms, encoding, 256); writer.Write("HTTP/1.1 {0} ", _statusCode); // "1.1" matches Windows implementation, which ignores the response version writer.Flush(); byte[] statusDescriptionBytes = WebHeaderEncoding.GetBytes(StatusDescription); |
