Skip to content

Commit

Permalink
Merge pull request #87 from dwgrth/patch-1
Browse files Browse the repository at this point in the history
fix Authorization in provisioning_has_valid_civitai_token
  • Loading branch information
robballantyne authored Aug 10, 2024
2 parents a5cd2c2 + dbd8064 commit 93fd7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/provisioning/default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function provisioning_has_valid_civitai_token() {
url="https://civitai.com/api/v1/models?hidden=1&limit=1"

response=$(curl -o /dev/null -s -w "%{http_code}" -X GET "$url" \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Authorization: Bearer $CIVITAI_TOKEN" \
-H "Content-Type: application/json")

# Check if the token is valid
Expand Down

0 comments on commit 93fd7f1

Please sign in to comment.