Parcourir la source

need to define content type now to send to discord

thelamer il y a 5 ans
Parent
commit
6baa0c3e51
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      script/message

+ 2 - 2
script/message

@@ -13,7 +13,7 @@ fi
 
 # send status to discord
 if [ "${TYPE}" == "failure" ]; then
-  curl -X POST --data \
+  curl -X POST -H "Content-Type: application/json" --data \
   '{
     "avatar_url": "https://avatars.io/twitter/travisci",
     "embeds": [
@@ -26,7 +26,7 @@ if [ "${TYPE}" == "failure" ]; then
   }' \
   ${DISCORD_HOOK_URL}
 else
-  curl -X POST --data \
+  curl -X POST -H "Content-Type: application/json" --data \
   '{
     "avatar_url": "https://avatars.io/twitter/travisci",
     "embeds": [