We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29fd839 + ddf0311 commit 6ccee5aCopy full SHA for 6ccee5a
1 file changed
webhooks.py
@@ -69,7 +69,11 @@ def index():
69
secret = config.get('enforce_secret', '')
70
if secret:
71
# Only SHA1 is supported
72
- sha_name, signature = request.headers.get('X-Hub-Signature').split('=')
+ header_signature = request.headers.get('X-Hub-Signature')
73
+ if header_signature is None:
74
+ abort(403)
75
+
76
+ sha_name, signature = header_signature.split('=')
77
if sha_name != 'sha1':
78
abort(501)
79
0 commit comments