From 0a63717ab1752e6ab802ca5e9a0cf3c12a926283 Mon Sep 17 00:00:00 2001
From: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Date: Sun, 27 Jan 2019 17:38:23 +0100
Subject: [PATCH] alfred-monitoring-proxy: Improve curl call
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This improves the curl call by:
- Using full executable path
- Removing redundant -X POST
- Using --data-binary instead of --data

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
---
 .../files/usr/sbin/alfred-monitoring-proxy                      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy b/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy
index b91187f6..d2c2f613 100755
--- a/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy
+++ b/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy
@@ -4,4 +4,4 @@ api_url="https://monitoring.freifunk-franken.de/api/alfred2"
 fetch_id="64"
 
 /bin/alfred-json -r "$fetch_id" | \
-    curl -k -v -H "Content-type: application/json; charset=UTF-8" -X POST --data "@-" $api_url
+    /usr/bin/curl -k -v -H "Content-type: application/json; charset=UTF-8" --data-binary @- "$api_url"
-- 
GitLab