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 28f584a commit e2af045Copy full SHA for e2af045
src/joserfc/util.py
@@ -33,8 +33,6 @@ def urlsafe_b64decode(s: bytes) -> bytes:
33
safe_ending = (b"AEIMQUYcgkosw048", b"AQgw")
34
if pad and s[-1] not in safe_ending[pad - 1]:
35
raise binascii.Error
36
- if pad == 2 and s[-1] not in b"AQgw":
37
- raise binascii.Error
38
39
s += b"=" * pad
40
return base64.b64decode(s, b"-_", validate=True)
0 commit comments