aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Net/HttpEndPointListener.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener/Net/HttpEndPointListener.cs')
-rw-r--r--SocketHttpListener/Net/HttpEndPointListener.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/SocketHttpListener/Net/HttpEndPointListener.cs b/SocketHttpListener/Net/HttpEndPointListener.cs
index d002c13b2..c78d186c5 100644
--- a/SocketHttpListener/Net/HttpEndPointListener.cs
+++ b/SocketHttpListener/Net/HttpEndPointListener.cs
@@ -277,8 +277,7 @@ namespace SocketHttpListener.Net
public bool BindContext(HttpListenerContext context)
{
var req = context.Request;
- ListenerPrefix prefix;
- var listener = SearchListener(req.Url, out prefix);
+ var listener = SearchListener(req.Url, out var prefix);
if (listener == null)
return false;