Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Add sign_algorithm parameter to HTTPSignatureAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
fulder committed Aug 25, 2020
1 parent 4613083 commit 1b061f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpsig/requests_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class HTTPSignatureAuth(requests.auth.AuthBase):
headers is a list of http headers to be included in the signing string,
defaulting to "Date" alone.
"""
def __init__(self, key_id='', secret='', algorithm=None, headers=None):
def __init__(self, key_id='', secret='', algorithm=None, sign_algorithm=None, headers=None):
headers = headers or []
self.header_signer = HeaderSigner(
key_id=key_id, secret=secret,
algorithm=algorithm, headers=headers)
algorithm=algorithm, sign_algorithm=sign_algorithm, headers=headers)
self.uses_host = 'host' in [h.lower() for h in headers]

def __call__(self, r):
Expand Down

0 comments on commit 1b061f9

Please sign in to comment.