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

Set custom default user agent and allow user override #31

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

sbscully
Copy link
Collaborator

@sbscully sbscully commented Feb 2, 2025

Add an option user_agent to OpenCage::Geocoder.new to allow the user to set a custom user agent for all requests. Also set a custom user agent by default with gem and Ruby versions.

I have not updated the version or changelog because I'm not sure how you like to do it.

@sbscully sbscully self-assigned this Feb 2, 2025
@mtmail mtmail merged commit 8b45763 into master Feb 3, 2025
8 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