lib/addressfinder/address_info.rb in addressfinder-1.5.1 vs lib/addressfinder/address_info.rb in addressfinder-1.5.2
- old
+ new
@@ -31,11 +31,10 @@
def build_request
@request_uri = "/api/#{country}/address/info.json?#{encoded_params}"
end
def encoded_params
- query = params.map{|k,v| "#{k}=#{v}"}.join('&')
- URI::encode(query)
+ Util.encode_and_join_params(params)
end
def execute_request
request = Net::HTTP::Get.new(request_uri)