Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…with some proxies
  • Loading branch information...
commit 2a68d05a2f0afcca88c61cfffb8345a9ec89a168 1 parent 02d583d
@rmanalan rmanalan authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.