Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HTTP Proxy #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

douglaslise
Copy link

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 of
RefileS3#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, as described here:
https://docs.ruby-lang.org/en/2.0.0/OpenURI/OpenRead.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant