Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/dash detect error #3040

Open
Mon-ius opened this issue Aug 10, 2024 · 0 comments
Open

/bin/dash detect error #3040

Mon-ius opened this issue Aug 10, 2024 · 0 comments

Comments

@Mon-ius
Copy link

Mon-ius commented Aug 10, 2024

try to consider, and compare,

curl -fsSL -o /dev/null -X PUT "$REG_URL/$id/account" \
    -H "Authorization: Bearer $token" \
    -H "Content-Type: application/json" \
    -d '{
        "license":'"${ROOT_LICENSE}"'
    }'

curl -fsSL -o /dev/null -X PUT "$REG_URL/$id/account" \
    -H "Authorization: Bearer $token" \
    -H "Content-Type: application/json" \
    -d '{
        "license":'"${license}"'
    }'

And,

curl -fsSL -o /dev/null -X PUT "$REG_URL/$id/account" \
    -H "Authorization: Bearer $token" \
    -H "Content-Type: application/json" \
    -d '{
        "license":"'${ROOT_LICENSE}'"
    }'

curl -fsSL -o /dev/null -X PUT "$REG_URL/$id/account" \
    -H "Authorization: Bearer $token" \
    -H "Content-Type: application/json" \
    -d '{
        "license":"'${license}'"
    }'

The detection approach is obvious wrong, which detection the right one as issued one, and the error one as correct, caused fundamental error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant