[Modify] Polish it
This commit is contained in:
parent
387b9570b9
commit
5852d8dd25
@ -324,18 +324,18 @@ namespace WebSocketSharp.Net
|
||||
return bestMatch;
|
||||
}
|
||||
|
||||
var list = _unhandled;
|
||||
bestMatch = searchHttpListenerFromSpecial (path, list, out prefix);
|
||||
if (path != pathSlash && bestMatch == null)
|
||||
bestMatch = searchHttpListenerFromSpecial (pathSlash, list, out prefix);
|
||||
var prefs = _unhandled;
|
||||
bestMatch = searchHttpListenerFromSpecial (path, prefs, out prefix);
|
||||
if (bestMatch == null && pathSlash != path)
|
||||
bestMatch = searchHttpListenerFromSpecial (pathSlash, prefs, out prefix);
|
||||
|
||||
if (bestMatch != null)
|
||||
return bestMatch;
|
||||
|
||||
list = _all;
|
||||
bestMatch = searchHttpListenerFromSpecial (path, list, out prefix);
|
||||
if (path != pathSlash && bestMatch == null)
|
||||
bestMatch = searchHttpListenerFromSpecial (pathSlash, list, out prefix);
|
||||
prefs = _all;
|
||||
bestMatch = searchHttpListenerFromSpecial (path, prefs, out prefix);
|
||||
if (bestMatch == null && pathSlash != path)
|
||||
bestMatch = searchHttpListenerFromSpecial (pathSlash, prefs, out prefix);
|
||||
|
||||
return bestMatch;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user