Browse files

changed Net::HTTP call when proxies are used... old code didn't work …

…with some proxies
  • Loading branch information...
1 parent 02d583d commit 2a68d05a2f0afcca88c61cfffb8345a9ec89a168 @rmanalan rmanalan committed Aug 28, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/geokit/geocoders.rb
View
3 lib/geokit/geocoders.rb
@@ -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

0 comments on commit 2a68d05

Please sign in to comment.