Skip to content

Commit

Permalink
changed Net::HTTP call when proxies are used... old code didn't work …
Browse files Browse the repository at this point in the history
…with some proxies
  • Loading branch information
rmanalan committed Aug 29, 2009
1 parent 02d583d commit 2a68d05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/geokit/geocoders.rb
Expand Up @@ -162,8 +162,7 @@ def self.do_get(url)
res = Net::HTTP::Proxy(GeoKit::Geocoders::proxy_addr,
GeoKit::Geocoders::proxy_port,
GeoKit::Geocoders::proxy_user,
GeoKit::Geocoders::proxy_pass).start(uri.host, uri.port) { |http| http.request(req) }

GeoKit::Geocoders::proxy_pass).start(uri.host, uri.port) { |http| http.get(uri.path + "?" + uri.query) }
return res
end

Expand Down

0 comments on commit 2a68d05

Please sign in to comment.