[Modify] Polish it

This commit is contained in:
sta 2017-01-25 16:29:31 +09:00
parent f5ebe3730d
commit 6f42f4ff47

View File

@ -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 (