Make sure we're actually POSTing.

pull/1/head
Simon Quigley 7 years ago
parent 2e9c24fcb8
commit 4748fdd48c

@ -166,7 +166,7 @@ def listenirc():
elif ircmsg.find("https://phab.lubuntu.me/T") != -1:
ircbot(ircmsg, "link")
@app.route("/commithook")
@app.route("/commithook", methods=["POST"])
def commithook():
data = request.data
hash = hmac.new(bytes(u"HMAC KEY", "utf-8"), data, sha256)

Loading…
Cancel
Save