diff --git a/websocket-sharp/Net/HttpListenerResponse.cs b/websocket-sharp/Net/HttpListenerResponse.cs index f26f1234..6d66e1c0 100644 --- a/websocket-sharp/Net/HttpListenerResponse.cs +++ b/websocket-sharp/Net/HttpListenerResponse.cs @@ -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))