From 6f42f4ff475e75521913077b7081063629f0c7c2 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 25 Jan 2017 16:29:31 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 4cb13795..37df2483 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -942,7 +942,7 @@ namespace WebSocketSharp } if (!uri.IsAbsoluteUri) { - message = "Not an absolute URI."; + message = "A relative URI."; return false; } @@ -952,17 +952,17 @@ namespace WebSocketSharp return false; } - if (uri.Fragment.Length > 0) { - message = "It includes the fragment component."; - return false; - } - var port = uri.Port; if (port == 0) { message = "The port part is zero."; return false; } + if (uri.Fragment.Length > 0) { + message = "It includes the fragment component."; + return false; + } + result = port != -1 ? uri : new Uri (