geocoder icon indicating copy to clipboard operation
geocoder copied to clipboard

Proxy setting should allow protocol prefix

Open timrwilliams opened this issue 13 years ago • 0 comments

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:\/\//, '')
)

timrwilliams avatar Oct 23 '13 13:10 timrwilliams