mirror of
https://github.com/IEEE-SB-Passau/pelican-deployment-system.git
synced 2017-09-06 16:35:38 +02:00
change function
This commit is contained in:
@@ -43,7 +43,7 @@ def _verify_github_signature(sighdr, body):
|
|||||||
|
|
||||||
|
|
||||||
@app.post('/github/<name>')
|
@app.post('/github/<name>')
|
||||||
def index(name):
|
def github(name):
|
||||||
sighdr = request.headers.get("X-Hub-Signature", "")
|
sighdr = request.headers.get("X-Hub-Signature", "")
|
||||||
if not _verify_github_signature(sighdr, request.body.read()):
|
if not _verify_github_signature(sighdr, request.body.read()):
|
||||||
log.error("Github request for %s faild to validate. "
|
log.error("Github request for %s faild to validate. "
|
||||||
|
|||||||
Reference in New Issue
Block a user