[Modify] Replace it
This commit is contained in:
parent
2be0c4c9b9
commit
dcbc93a606
@ -581,8 +581,8 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!value.MaybeUri ())
|
if (value.Length == 0)
|
||||||
throw new ArgumentException ("Not an absolute URL.", "value");
|
throw new ArgumentException ("An empty string.", "value");
|
||||||
|
|
||||||
Uri uri;
|
Uri uri;
|
||||||
if (!Uri.TryCreate (value, UriKind.Absolute, out uri))
|
if (!Uri.TryCreate (value, UriKind.Absolute, out uri))
|
||||||
|
Loading…
Reference in New Issue
Block a user