diff --git a/websocket-sharp/Net/HttpListenerResponse.cs b/websocket-sharp/Net/HttpListenerResponse.cs index 21ff83bc..89f2d5f1 100644 --- a/websocket-sharp/Net/HttpListenerResponse.cs +++ b/websocket-sharp/Net/HttpListenerResponse.cs @@ -323,18 +323,11 @@ namespace WebSocketSharp.Net /// Gets or sets the URL to which the client is redirected to locate a requested resource. /// /// - /// A that represents the value of the Location response-header. + /// A that represents the value of the Location response-header, + /// or if no redirect location is specified. /// /// - /// - /// The value specified for a set operation is empty. - /// - /// - /// -or- - /// - /// - /// The value specified for a set operation isn't an absolute URL. - /// + /// The value specified for a set operation isn't an absolute URL. /// /// /// This object is closed. @@ -351,9 +344,6 @@ namespace WebSocketSharp.Net return; } - if (value.Length == 0) - throw new ArgumentException ("An empty string.", "value"); - Uri uri = null; if (!value.MaybeUri () || !Uri.TryCreate (value, UriKind.Absolute, out uri)) throw new ArgumentException ("Not an absolute URL.", "value"); @@ -806,15 +796,7 @@ namespace WebSocketSharp.Net /// is . /// /// - /// - /// is empty. - /// - /// - /// -or- - /// - /// - /// isn't an absolute URL. - /// + /// isn't an absolute URL. /// /// /// The response has already been sent. @@ -828,9 +810,6 @@ namespace WebSocketSharp.Net if (url == null) throw new ArgumentNullException ("url"); - if (url.Length == 0) - throw new ArgumentException ("An empty string.", "url"); - Uri uri = null; if (!url.MaybeUri () || !Uri.TryCreate (url, UriKind.Absolute, out uri)) throw new ArgumentException ("Not an absolute URL.", "url");