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

Commit 4052954

Browse files
committed
Take back setting algorithm to default twice
1 parent 86ef109 commit 4052954

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

httpsig/sign.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class HeaderSigner(Signer):
108108
'authorization'.
109109
"""
110110
def __init__(self, key_id, secret, algorithm=None, sign_algorithm=None, headers=None, sign_header='authorization'):
111+
if algorithm is None:
112+
algorithm = DEFAULT_SIGN_ALGORITHM
113+
111114
super(HeaderSigner, self).__init__(secret=secret, algorithm=algorithm, sign_algorithm=sign_algorithm)
112115
self.headers = headers or ['date']
113116
self.signature_template = build_signature_template(

0 commit comments

Comments
 (0)