[Modify] Add it
This commit is contained in:
parent
a4235be063
commit
2c531b6288
@ -895,6 +895,12 @@ namespace WebSocketSharp
|
|||||||
return ret.Length > 0 ? ret : "/";
|
return ret.Length > 0 ? ret : "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static string TrimSlashOrBackslashFromEnd (this string value)
|
||||||
|
{
|
||||||
|
var ret = value.TrimEnd ('/', '\\');
|
||||||
|
return ret.Length > 0 ? ret : value[0].ToString ();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tries to create a new <see cref="Uri"/> for WebSocket with
|
/// Tries to create a new <see cref="Uri"/> for WebSocket with
|
||||||
/// the specified <paramref name="uriString"/>.
|
/// the specified <paramref name="uriString"/>.
|
||||||
|
Loading…
Reference in New Issue
Block a user