Commit 1144e8b4 authored by Pietro Albini's avatar Pietro Albini

Remove the restriction of the webhooks method

parent be296a1a
...@@ -53,7 +53,7 @@ def create_app(manager): ...@@ -53,7 +53,7 @@ def create_app(manager):
return flask.send_file(str(path), mimetype="text/plain") return flask.send_file(str(path), mimetype="text/plain")
@app.route("/+hook/<token>", methods=["POST"]) @app.route("/+hook/<token>")
def hook(token): def hook(token):
if token != manager.config["hooks-token"]: if token != manager.config["hooks-token"]:
return "UNAUTHORIZED", 401 return "UNAUTHORIZED", 401
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment