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

feat: add User-Agent header in CLI when sending requests API requests #5943

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dejanzele
Copy link
Contributor

Pull request description

Add User-Agent header when using CLI to send requests to API.

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Breaking changes

Changes

Fixes

@dejanzele dejanzele requested a review from a team as a code owner October 18, 2024 01:11
if headers == nil {
headers = make(map[string]string)
}
headers["User-Agent"] = UserAgentCLI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe consider adding cli version? I think it's typical in User agents

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

Successfully merging this pull request may close these issues.

3 participants