We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40962ef commit 64c1b39Copy full SHA for 64c1b39
Extensions/B64Extensions.cs
@@ -151,6 +151,7 @@ public static string ToB64Url(this byte[] input)
151
152
static string _ToB64Url(ref ArraySegment<byte> inputSegment)
153
{
154
+ if (inputSegment.Count < 1) return string.Empty;
155
string b64str = _ToB64(ref inputSegment);
156
return b64str.Substring(0, b64str.Length - 1);
157
}// _ToB64Url()
0 commit comments