[Modify] Polish it

master
sta 5 years ago
parent 3994199257
commit e268168e6a

@ -104,8 +104,11 @@ namespace WebSocketSharp.Net
throw new HttpListenerException (87, msg);
}
if (!port.IsPortNumber ())
throw new HttpListenerException (87, "Includes an invalid port.");
if (!port.IsPortNumber ()) {
var msg = "The URI prefix includes an invalid port.";
throw new HttpListenerException (87, msg);
}
var path = pref.Path;

Loading…
Cancel
Save