Merge pull request #8271 from Security-Onion-Solutions/kilo

Add content-type header to PUT request, now required in Kratos 0.10.1
This commit is contained in:
Jason Ertel
2022-07-11 13:47:28 -04:00
committed by GitHub

View File

@@ -437,7 +437,7 @@ function updateStatus() {
state="inactive"
fi
body="{ \"schema_id\": \"$schemaId\", \"state\": \"$state\", \"traits\": $traitBlock }"
response=$(curl -fSsL -XPUT "${kratosUrl}/identities/$identityId" -d "$body")
response=$(curl -fSsL -XPUT -H "Content-Type: application/json" "${kratosUrl}/identities/$identityId" -d "$body")
[[ $? != 0 ]] && fail "Unable to update user"
}