Skip to content
Snippets Groups Projects
Commit 0959d31f authored by Thu Trang Pham's avatar Thu Trang Pham
Browse files

Use client inside of http_client.start

parent 3780b561
No related branches found
No related tags found
No related merge requests found
......@@ -271,11 +271,11 @@ module Geocoder
opts[:use_ssl] = use_ssl?
http_client.start(*args, opts) do |client|
req = http_client::Get.new(uri.request_uri, configuration.http_headers)
req = client::Get.new(uri.request_uri, configuration.http_headers)
if configuration.basic_auth
req.basic_auth(configuration.basic_auth[:user], configuration.basic_auth[:password])
end
http_client.request(req)
client.request(req)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment