diff options
-rw-r--r-- | mcs/class/System/System.Net/EndPointListener.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net/EndPointListener.cs b/mcs/class/System/System.Net/EndPointListener.cs index fa6827e8a6e..34fe18fe888 100644 --- a/mcs/class/System/System.Net/EndPointListener.cs +++ b/mcs/class/System/System.Net/EndPointListener.cs @@ -180,13 +180,18 @@ namespace System.Net { ArrayList list = unhandled; best_match = MatchFromList (host, path, list, out prefix); + if (path != path_slash && best_match == null) + best_match = MatchFromList (host, path_slash, list, out prefix); if (best_match != null) return best_match; list = all; best_match = MatchFromList (host, path, list, out prefix); + if (path != path_slash && best_match == null) + best_match = MatchFromList (host, path_slash, list, out prefix); if (best_match != null) return best_match; + return null; } |