From f71149d8a87863b1b2532ab226c560277d1ea94a Mon Sep 17 00:00:00 2001 From: Aly Sivji <4369343+alysivji@users.noreply.github.com> Date: Wed, 8 Apr 2020 19:15:33 -0500 Subject: [PATCH] Do not require HTTPS on healthcheck endpoint (#235) --- busy_beaver/apps/debug/api/healthcheck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/busy_beaver/apps/debug/api/healthcheck.py b/busy_beaver/apps/debug/api/healthcheck.py index 5e308d61..67583ab2 100644 --- a/busy_beaver/apps/debug/api/healthcheck.py +++ b/busy_beaver/apps/debug/api/healthcheck.py @@ -2,11 +2,14 @@ from flask import blueprints, jsonify +from busy_beaver.extensions import talisman + logger = logging.getLogger(__name__) healthcheck_bp = blueprints.Blueprint("healthcheck", __name__) @healthcheck_bp.route("/healthcheck", methods=["GET"]) +@talisman(force_https=False) def health_check(): logger.info("Hit healthcheck") return jsonify({"ping": "pong"})