[Modify] Replace it

This commit is contained in:
sta 2019-12-23 22:18:53 +09:00
parent 90faa410b7
commit 794c2184b4

View File

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