geocoder
geocoder copied to clipboard
Proxy setting should allow protocol prefix
For compatibility with external proxy configuration the http_proxy and https_proxy config settings should allow full URLs including protocol.
:http_proxy => 'http://user:[email protected]',
:http_proxy => 'https://user:[email protected]'
This specifically solves integration with Heroku provisioned proxies like the one I run, QuotaGuard.
Heroku provisions the service by adding a QUOTAGUARD_URL in to the environment variables. They stipulate this must contain a protocol so has to include http://
Without fixing this issue the Geocoder config becomes more cumbersome:
Geocoder.configure(
:http_proxy => ENV['QUOTAGUARD_URL'].sub(/^http:\/\//, '')
)