From 8284b41d300dd2b9d49bd3e75a57e02429f5e913 Mon Sep 17 00:00:00 2001 From: Tien Ngo Date: Tue, 30 Dec 2025 14:47:31 +0700 Subject: [PATCH] opt: fix ntfy --- notify.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify.sh b/notify.sh index ed3b917..4055816 100644 --- a/notify.sh +++ b/notify.sh @@ -47,12 +47,12 @@ send_ntfy() { # Disable exit on error for curl set +e - response=$(curl -s -w "\n%{http_code}" --http1.1 -k $auth_args -X POST "$NTFY_URL/$NTFY_TOPIC" \ + response=$(printf "%s" "$MESSAGE" | curl -s -w "\n%{http_code}" --http1.1 -k $auth_args -X POST "$NTFY_URL/$NTFY_TOPIC" \ -H "Title: $ICON $TITLE" \ -H "Priority: 4" \ -H "Click: $click_url" \ -H "Actions: view, Open Logs, $click_url" \ - -d "$MESSAGE" 2>&1) + --data-binary @- 2>&1) curl_exit_code=$? set -e