优化
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user