ahknight / httpsig

HTTP Signature for Python
https://datatracker.ietf.org/doc/draft-cavage-http-signatures/
MIT License
36 stars 20 forks source link

Add sign_header to HTTPSignatureAuth #18

Open sharpaper opened 5 years ago

sharpaper commented 5 years ago

HeaderSigner has a useful parameter called sign_header which allows to specify the header to add the signature to. It defaults to authorization but some services require Signature: .... Unfortunately this is not available for the Python requests, because HTTPSignatureAuth automatically initializes self.header_signer with the default value of authorization and it cannot be changed.