Fixing auth type

This commit is contained in:
Dan 2026-01-12 08:52:31 +00:00
parent a9c9ca866c
commit fed9aabcb0

View file

@ -65,9 +65,8 @@ jq -c '.[]' "$WEBMENTIONS_FILE" | while read -r mention; do
# Send to your API # Send to your API
response=$(curl -s -w "\n%{http_code}" -X POST "$API_ENDPOINT" \ response=$(curl -s -w "\n%{http_code}" -X POST "$API_ENDPOINT" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "$mention") -d "{\"auth\":\"$API_KEY\",\"source\":\"$source\",\"target\":\"$target\"}")
http_code=$(echo "$response" | tail -n1) http_code=$(echo "$response" | tail -n1)