Skip to content
Snippets Groups Projects
Commit df07ac30 authored by hangindev's avatar hangindev
Browse files

fix: base64 decoding in attach decorator

parent a033cd04
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,7 @@ class AttachDecoratorData(BaseModel):
"""Accessor for signed content (payload), None for unsigned."""
return (
b64_to_bytes(unpad(set_urlsafe_b64(self.base64, urlsafe=True)))
b64_to_bytes(unpad(set_urlsafe_b64(self.base64, urlsafe=True)), True)
if self.signatures
else None
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment