Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 86ef109

Browse files
committed
Accept None sign_algorithm for backward compability
1 parent 79ca3a2 commit 86ef109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpsig/sign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, secret, algorithm=None, sign_algorithm=None):
2424
algorithm = DEFAULT_SIGN_ALGORITHM
2525

2626
assert algorithm in ALGORITHMS, "Unknown algorithm"
27-
assert sign_algorithm in SIGN_ALGORITHMS, "Unsupported digital signature algrotihm"
27+
assert sign_algorithm is None or sign_algorithm in SIGN_ALGORITHMS, "Unsupported digital signature algorithm"
2828

2929
if algorithm != DEFAULT_SIGN_ALGORITHM:
3030
print("Algorithm: {} is deprecated please update to {}".format(algorithm, DEFAULT_SIGN_ALGORITHM))

0 commit comments

Comments
 (0)