Merge branch 'kyanha-encodingfix' into 'main'
Add change to veilid_encoding.dart to fix base64 See merge request veilid/veilid!213
This commit is contained in:
commit
536b5a5839
@ -13,7 +13,9 @@ String base64UrlNoPadEncode(List<int> bytes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Uint8List base64UrlNoPadDecode(String source) {
|
Uint8List base64UrlNoPadDecode(String source) {
|
||||||
|
if(source.length % 4 != 0) {
|
||||||
source = base64.normalize(source);
|
source = base64.normalize(source);
|
||||||
|
}
|
||||||
return base64.decode(source);
|
return base64.decode(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user