We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb8409 commit 663cb2eCopy full SHA for 663cb2e
webhooks.py
@@ -74,8 +74,8 @@ def index():
74
abort(501)
75
76
# HMAC requires the key to be bytes, but data is string
77
- mac = hmac.new(secret, msg=request.data, digestmod=sha1)
78
- if not hmac.compare_digest(mac.hexdigest(), signature):
+ mac = hmac.new(str(secret), msg=request.data, digestmod=sha1)
+ if not hmac.compare_digest(str(mac.hexdigest()), str(signature)):
79
abort(403)
80
81
# Implement ping
0 commit comments