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 set_proxy_auth to client initialization if proxy auth is required #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unavailabl3
Copy link

@unavailabl3 unavailabl3 commented Nov 7, 2019

This update is to add proxy authorization featrue to http client initialization. After it only need to add three environments:

HTTP_PROXY=http://1.2.3.4:5678
HTTP_PROXY_USER=username_for_proxy
HTTP_PROXY_PASSWORD=password_for_proxy

It made with the help of HTTPClient documentation httpclient#set_proxy_auth

@printercu
Copy link
Member

Hi, and thank you for the contribution!

Is it possible to pass credentials like HTTP_PROXY=http://username_for_proxy:password_for_proxy@1.2.3.4:5678?

@unavailabl3
Copy link
Author

unavailabl3 commented Nov 7, 2019

Yes, it is possible
I think you can write about it in gem docs. It is very useful for countries where Telegram blocked

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.

None yet

2 participants