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: