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