From dc5a0470923d32ed9f87a0541fc5032ab5c0855c Mon Sep 17 00:00:00 2001 From: DonHaul Date: Wed, 14 Aug 2024 18:20:05 +0200 Subject: [PATCH] backoffice: workflows modification of the headers --- backoffice/backoffice/workflows/airflow_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backoffice/backoffice/workflows/airflow_utils.py b/backoffice/backoffice/workflows/airflow_utils.py index d5f5c0e1..95f85626 100644 --- a/backoffice/backoffice/workflows/airflow_utils.py +++ b/backoffice/backoffice/workflows/airflow_utils.py @@ -11,7 +11,6 @@ AIRFLOW_BASE_URL = environ.get("AIRFLOW_BASE_URL") AIRFLOW_HEADERS = { - "Content-Type": "application/json", "Authorization": f"Basic {environ.get('AIRFLOW_TOKEN')}", } @@ -140,10 +139,7 @@ def delete_workflow_dag(dag_id, workflow_id): dag_id, url, ) - response = requests.delete( - url, - headers=AIRFLOW_HEADERS, - ) + response = requests.delete(url, headers=AIRFLOW_HEADERS) response.raise_for_status() return JsonResponse({"message": "Successfully deleted DAG"}) except RequestException: