From 794c2184b4e14d90500d658fcb7083f929d2e82b Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 23 Dec 2019 22:18:53 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/HttpListenerResponse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))