From f3c9e8f0130900021f1978600c293e739cce6a00 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 14 Feb 2025 08:06:03 +0100 Subject: [PATCH] Update api.func (#2378) --- misc/api.func | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/api.func b/misc/api.func index 6c6301b86..00748d58b 100644 --- a/misc/api.func +++ b/misc/api.func @@ -39,7 +39,7 @@ post_to_api() { EOF ) - RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ + RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ -H "Content-Type: application/json" \ -d "$JSON_PAYLOAD") || true } @@ -87,7 +87,7 @@ post_to_api_vm() { EOF ) - RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ + RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ -H "Content-Type: application/json" \ -d "$JSON_PAYLOAD") || true } @@ -115,7 +115,7 @@ post_update_to_api() { EOF ) - RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ + RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \ -H "Content-Type: application/json" \ -d "$JSON_PAYLOAD") || true