|
|
|
@ -615,12 +615,12 @@ namespace WebSocketSharp
|
|
|
|
Uri uri;
|
|
|
|
Uri uri;
|
|
|
|
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
|
|
|
|
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
|
|
|
|
msg = "Not an absolute URI string.";
|
|
|
|
msg = "Not an absolute URI string.";
|
|
|
|
throw new ArgumentException (msg, value);
|
|
|
|
throw new ArgumentException (msg, "value");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (uri.Segments.Length > 1) {
|
|
|
|
if (uri.Segments.Length > 1) {
|
|
|
|
msg = "It includes the path segments.";
|
|
|
|
msg = "It includes the path segments.";
|
|
|
|
throw new ArgumentException (msg, value);
|
|
|
|
throw new ArgumentException (msg, "value");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|