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 2de5778 commit 43ab88aCopy full SHA for 43ab88a
webhooks.py
@@ -73,8 +73,8 @@ def index():
73
if sha_name != 'sha1':
74
abort(501)
75
76
- # HMAC requires its key to be bytes, but data is strings.
77
- mac = hmac.new(secret, msg=data, digestmod=sha1)
+ # HMAC requires the key to be bytes, but data is string
+ mac = hmac.new(secret, msg=request.data, digestmod=sha1)
78
if not hmac.compare_digest(mac.hexdigest(), signature):
79
abort(403)
80
0 commit comments