mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-21 23:01:00 +00:00
Signatures need to use UTF-8 in order to represent all URLs (#633)
This commit is contained in:
parent
70b9e3b900
commit
2a50928f27
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class HttpSignature:
|
|||
try:
|
||||
public_key_instance.verify(
|
||||
signature,
|
||||
cleartext.encode("ascii"),
|
||||
cleartext.encode("utf8"),
|
||||
padding.PKCS1v15(),
|
||||
hashes.SHA256(),
|
||||
)
|
||||
|
@ -229,7 +229,7 @@ class HttpSignature:
|
|||
),
|
||||
)
|
||||
signature = private_key_instance.sign(
|
||||
signed_string.encode("ascii"),
|
||||
signed_string.encode("utf8"),
|
||||
padding.PKCS1v15(),
|
||||
hashes.SHA256(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue