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

Add user_agent_comment option and set to "OpenCage CLI" for CLI requests #59

Merged
merged 3 commits into from
Nov 9, 2024

Conversation

sbscully
Copy link
Contributor

@sbscully sbscully commented Nov 8, 2024

  • OpenCageGeocode takes an optional user_agent_comment argument.
  • This is appended to the user agent header as a comment.
  • user_agent_comment is set to OpenCage CLI for requests from the command line.
  • Tested in test_headers.py.

@sbscully sbscully self-assigned this Nov 8, 2024
@mtmail mtmail merged commit 6b371d9 into master Nov 9, 2024
10 checks passed
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.

2 participants