diff --git a/websocket-sharp/Net/HttpListenerResponse.cs b/websocket-sharp/Net/HttpListenerResponse.cs index 01b989db..85d75c3f 100644 --- a/websocket-sharp/Net/HttpListenerResponse.cs +++ b/websocket-sharp/Net/HttpListenerResponse.cs @@ -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))