Skip to content

Commit 4871bff

Browse files
OrkoHuntercarlos-jenkins
authored andcommitted
Put function argument in quotes (carlos-jenkins#18)
Fixed missing quotes in hmac digestmod
1 parent efb58be commit 4871bff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webhooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def index():
7979
abort(501)
8080

8181
# HMAC requires the key to be bytes, but data is string
82-
mac = hmac.new(str(secret), msg=request.data, digestmod=sha1)
82+
mac = hmac.new(str(secret), msg=request.data, digestmod='sha1')
8383

8484
# Python prior to 2.7.7 does not have hmac.compare_digest
8585
if hexversion >= 0x020707F0:

0 commit comments

Comments
 (0)