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