[Modify] Replace it

This commit is contained in:
sta 2019-12-22 21:33:02 +09:00
parent 2be0c4c9b9
commit dcbc93a606

View File

@ -581,8 +581,8 @@ namespace WebSocketSharp.Net
return;
}
if (!value.MaybeUri ())
throw new ArgumentException ("Not an absolute URL.", "value");
if (value.Length == 0)
throw new ArgumentException ("An empty string.", "value");
Uri uri;
if (!Uri.TryCreate (value, UriKind.Absolute, out uri))