mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-03 04:06:11 -04:00
Add change to veilid_encoding.dart to fix base64
This commit is contained in:
parent
f59c4509ea
commit
4bd5e9a46f
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ String base64UrlNoPadEncode(List<int> bytes) {
|
|||
}
|
||||
|
||||
Uint8List base64UrlNoPadDecode(String source) {
|
||||
source = base64.normalize(source);
|
||||
if(source.length % 4 != 0) {
|
||||
source = base64.normalize(source);
|
||||
}
|
||||
return base64.decode(source);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue