b64: don't add redundant padding.
This commit is contained in:
parent
2e018dfe76
commit
3db204e4bb
@ -28,7 +28,7 @@ def generate_rev_uid(length=32):
|
|||||||
|
|
||||||
|
|
||||||
def b64encode(value):
|
def b64encode(value):
|
||||||
return base64.urlsafe_b64encode(value).decode('ascii')
|
return base64.urlsafe_b64encode(value).decode('ascii').strip('=')
|
||||||
|
|
||||||
|
|
||||||
def b64decode(data):
|
def b64decode(data):
|
||||||
|
Loading…
Reference in New Issue
Block a user