diff --git a/template/python3-flask-armhf/index.py b/template/python3-flask-armhf/index.py index 35fa6a8..48554ff 100644 --- a/template/python3-flask-armhf/index.py +++ b/template/python3-flask-armhf/index.py @@ -27,7 +27,7 @@ def fix_transfer_encoding(): @app.route("/", defaults={"path": ""}, methods=["POST", "GET"]) @app.route("/", methods=["POST", "GET"]) def main_route(path): - raw_body = os.getenv("RAW_BODY") + raw_body = os.getenv("RAW_BODY", "false") as_text = True diff --git a/template/python3-flask-debian/index.py b/template/python3-flask-debian/index.py index 35fa6a8..48554ff 100644 --- a/template/python3-flask-debian/index.py +++ b/template/python3-flask-debian/index.py @@ -27,7 +27,7 @@ def fix_transfer_encoding(): @app.route("/", defaults={"path": ""}, methods=["POST", "GET"]) @app.route("/", methods=["POST", "GET"]) def main_route(path): - raw_body = os.getenv("RAW_BODY") + raw_body = os.getenv("RAW_BODY", "false") as_text = True diff --git a/template/python3-flask/index.py b/template/python3-flask/index.py index 35fa6a8..48554ff 100644 --- a/template/python3-flask/index.py +++ b/template/python3-flask/index.py @@ -27,7 +27,7 @@ def fix_transfer_encoding(): @app.route("/", defaults={"path": ""}, methods=["POST", "GET"]) @app.route("/", methods=["POST", "GET"]) def main_route(path): - raw_body = os.getenv("RAW_BODY") + raw_body = os.getenv("RAW_BODY", "false") as_text = True