From 3db204e4bb52163e3bc2ddd2063fd858fb9ec3b0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 15 Apr 2020 16:50:47 +0300 Subject: [PATCH] b64: don't add redundant padding. --- django_etesync/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etesync/serializers.py b/django_etesync/serializers.py index bc04bc0..1b87a86 100644 --- a/django_etesync/serializers.py +++ b/django_etesync/serializers.py @@ -28,7 +28,7 @@ def generate_rev_uid(length=32): def b64encode(value): - return base64.urlsafe_b64encode(value).decode('ascii') + return base64.urlsafe_b64encode(value).decode('ascii').strip('=') def b64decode(data):