refile / refile-s3

Amazon S3 Backend for Refile
MIT License
36 stars 88 forks source link

Add support for HTTP Proxy #32

Open douglaslise opened 7 years ago

douglaslise commented 7 years ago

It was not enough to define http_proxy on S3 configs because inside of Refile::S3#open that setting was not considered, failing to open the URL. So this change extracts proxy from S3's settings and forwards them to Kernel.open, that forwards them to OpenURI, as documented here: https://docs.ruby-lang.org/en/2.0.0/OpenURI/OpenRead.html