We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb58be commit 4871bffCopy full SHA for 4871bff
1 file changed
webhooks.py
@@ -79,7 +79,7 @@ def index():
79
abort(501)
80
81
# HMAC requires the key to be bytes, but data is string
82
- mac = hmac.new(str(secret), msg=request.data, digestmod=sha1)
+ mac = hmac.new(str(secret), msg=request.data, digestmod='sha1')
83
84
# Python prior to 2.7.7 does not have hmac.compare_digest
85
if hexversion >= 0x020707F0:
0 commit comments