aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Net/HttpConnection.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-18 16:48:01 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-18 16:48:01 +0100
commitc1f76eb8ab2c4fe536a9b612d659bf739f0cc7ac (patch)
treeb78e697ec3676c70a2db5c98ce2a5ea27fdea105 /SocketHttpListener/Net/HttpConnection.cs
parent38f96af079887cce7c38fcde8340fd7c6d1150ad (diff)
Reformat JustAMan review pt3 changes
Diffstat (limited to 'SocketHttpListener/Net/HttpConnection.cs')
-rw-r--r--SocketHttpListener/Net/HttpConnection.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/SocketHttpListener/Net/HttpConnection.cs b/SocketHttpListener/Net/HttpConnection.cs
index e87503118..af1c081d9 100644
--- a/SocketHttpListener/Net/HttpConnection.cs
+++ b/SocketHttpListener/Net/HttpConnection.cs
@@ -269,7 +269,7 @@ namespace SocketHttpListener.Net
Close(true);
return;
}
- var listener = _epl.Listener;
+ HttpListener listener = _epl.Listener;
if (_lastListener != listener)
{
RemoveConnection();
@@ -417,7 +417,7 @@ namespace SocketHttpListener.Net
{
try
{
- var response = _context.Response;
+ HttpListenerResponse response = _context.Response;
response.StatusCode = status;
response.ContentType = "text/html";
string description = HttpStatusDescription.Get(status);
@@ -509,7 +509,7 @@ namespace SocketHttpListener.Net
return;
}
- var s = _socket;
+ Socket s = _socket;
_socket = null;
try
{