[Modify] Polish it

This commit is contained in:
sta 2020-09-14 19:49:10 +09:00
parent c7b746bdaf
commit c63dd9a9cc

View File

@ -204,6 +204,12 @@ namespace WebSocketSharp.Net
var root = uriPrefix.IndexOf ('/', host, len - host);
if (root == host) {
var msg = "No host is specified.";
throw new ArgumentException (msg, "uriPrefix");
}
if (uriPrefix[root - 1] == ':') {
var msg = "No port is specified.";