Skip to content

Commit

Permalink
fix(reconfigure_xmpp): curl headers missing content type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkvanmeerten authored and damencho committed Sep 19, 2024
1 parent 590a00a commit aadff45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/reconfigure_xmpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for SERVER_ID in $CONFIG_SERVER_IDS; do
cat /tmp/cc-muc.json | grep -v 'PASSWORD' | jq
else
echo "Adding MUC: $SERVER_ID"
curl -s -X POST -d @/tmp/cc-muc.json $CC_MUC_ADD_URL
curl -s -H"Content-Type: application/json" -X POST -d @/tmp/cc-muc.json $CC_MUC_ADD_URL
fi
rm /tmp/cc-muc.json
i=$((i+1))
Expand All @@ -57,6 +57,6 @@ for MUC in $CC_MUC_REMOVE_LIST; do
echo "Would Remove MUC: $MUC"
else
echo "Removing MUC: $MUC"
curl -s -X POST -d "{\"id\":\"$MUC\"}" $CC_MUC_REMOVE_URL
curl -s -H"Content-Type: application/json" -X POST -d "{\"id\":\"$MUC\"}" $CC_MUC_REMOVE_URL
fi
done

0 comments on commit aadff45

Please sign in to comment.