mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-08-11 14:04:04 +00:00
Make sure we're actually POSTing.
This commit is contained in:
parent
2e9c24fcb8
commit
4748fdd48c
2
lugito
2
lugito
@ -166,7 +166,7 @@ def listenirc():
|
|||||||
elif ircmsg.find("https://phab.lubuntu.me/T") != -1:
|
elif ircmsg.find("https://phab.lubuntu.me/T") != -1:
|
||||||
ircbot(ircmsg, "link")
|
ircbot(ircmsg, "link")
|
||||||
|
|
||||||
@app.route("/commithook")
|
@app.route("/commithook", methods=["POST"])
|
||||||
def commithook():
|
def commithook():
|
||||||
data = request.data
|
data = request.data
|
||||||
hash = hmac.new(bytes(u"HMAC KEY", "utf-8"), data, sha256)
|
hash = hmac.new(bytes(u"HMAC KEY", "utf-8"), data, sha256)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user