webGui: use JSON for Slack notifications since it's preferred and may work better for 3rd party webhooks (e.g. Discord)

This commit is contained in:
Eric Schultz
2017-06-25 11:15:14 -05:00
parent 879f95febb
commit ee5e2ac5ef
@@ -205,7 +205,8 @@
############
TITLE=$(echo -e "$TITLE")
MESSAGE=$(echo -e "$MESSAGE")
curl -X POST -d "payload={\"username\": \"$APP_NAME\", \"text\": \"*$TITLE* \n $MESSAGE\"}" $WEBH_URL 2>&1
curl -X POST --header 'Content-Type: application/json' \
-d "{\"username\": \"$APP_NAME\", \"text\": \"*$TITLE* \n $MESSAGE\"}" $WEBH_URL 2>&1
]]>
</Script>
</Agent>