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