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

Don't throw errors when using SSL #592

Merged
merged 2 commits into from
Jan 29, 2014

Conversation

drinks
Copy link
Contributor

@drinks drinks commented Jan 28, 2014

Setting config :use_ssl => true currently raises IOError from Net::HTTP; Because start is called before setting the use_ssl flag. This patch sets up all of the required args before calling start, and uses .get on the existing client rather than instantiating a new instance of Net::HTTP::Get.

As a sidebar, MaxmindLocal tests are erroring, presumably because they exist yet maxmind_local isn't being required. Not sure what the gameplan is for that, so I left it alone. The rest of the tests are passing.

@christoph-buente
Copy link
Contributor

👍

@alexreisner
Copy link
Owner

Thanks for this! Looks good--will merge soon.

I'm still debating about the best way to deal with the local MaxMind stuff. See #581 for discussion (opinions welcome!).

alexreisner added a commit that referenced this pull request Jan 29, 2014
Don't throw errors when using SSL
@alexreisner alexreisner merged commit 9a29492 into alexreisner:master Jan 29, 2014
@drinks drinks deleted the fix_ssl branch February 10, 2014 17:17
@UnderpantsGnome
Copy link

@alexreisner is there an ETA on the next gem release? Currently using the github version, would like to switch a client back to the gem.

Thanks 😄

@alexreisner
Copy link
Owner

@UnderpantsGnome Hoping to release some time in April. Need to address #630 first.

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.

4 participants