From 6c27706f059bc6011d9b544a2329f1224c291e0e Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Mon, 23 Mar 2015 11:25:16 -0400
Subject: [PATCH] Use #protocol method rather than re-reading config.

This was preventing lookups from forcing a particular protocol.
---
 lib/geocoder/lookups/base.rb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/geocoder/lookups/base.rb b/lib/geocoder/lookups/base.rb
index 7a65d66a..e0edb913 100644
--- a/lib/geocoder/lookups/base.rb
+++ b/lib/geocoder/lookups/base.rb
@@ -99,7 +99,6 @@ module Geocoder
       # Object used to make HTTP requests.
       #
       def http_client
-        protocol = "http#{'s' if use_ssl?}"
         proxy_name = "#{protocol}_proxy"
         if proxy = configuration.send(proxy_name)
           proxy_url = !!(proxy =~ /^#{protocol}/) ? proxy : protocol + '://' + proxy
-- 
GitLab