Просмотр исходного кода

need to define content type now to send to discord

thelamer 5 лет назад
Родитель
Сommit
6baa0c3e51
1 измененных файлов с 2 добавлено и 2 удалено
  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": [