platformsh / cli

The unified tool for managing your Platform.sh services from the command line.
https://docs.platform.sh/administration/cli.html
MIT License
16 stars 6 forks source link

Ensure the right version is used in the API user-agent #161

Closed lolautruche closed 5 months ago

lolautruche commented 6 months ago

It seems that it's still the legacy user-agent that is used when consuming the API (v4 legacy).

akalipetis commented 5 months ago

The user agent is sent correctly, it contains both the Legacy CLI version and the Wrapper version (which are not different). Ref: https://github.com/platformsh/cli/blob/e9fd86d6cd9b1e07fb1a82d6480b2adfd8aa58ca/internal/legacy/legacy.go#L173-L179