From 9962cf5ef3a2a844866d8fc86364e2680bc175a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Wed, 23 Apr 2025 15:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/test/fail_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/test/fail_test.py b/dags/test/fail_test.py index 460150a..e5bcb80 100644 --- a/dags/test/fail_test.py +++ b/dags/test/fail_test.py @@ -14,8 +14,8 @@ def send_dingding_alert(context): http_hook = HttpHook(method="POST", http_conn_id="dingding_webhook") http_hook.run( endpoint="robot/send", - data=message, - headers={"Content-Type": "application/json"} + data=message.encode('utf-8'), + headers={"Content-Type": "application/json;charset=utf-8"} ) print("success")