pyauth / requests-http-signature

A Requests auth module for the IETF HTTP Message Signatures draft standard

Home Page:https://pyauth.github.io/requests-http-signature/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default code example key > value not byte array

robcordes opened this issue · comments

TypeError: key: expected bytes or bytearray, but got 'str'

I found the same. MacOS, python 3.7. Py37's hmac raises TypeError if the key isn't bytes or bytesarray. Simply encoding the key didn't seem to work, though I'm not sure, as I don't have a reference "good" call for this httpsig api to compare.

Thanks for reporting, this is now fixed.

Thank you!