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 proxy option to config and prepare the requests with it #47

Closed
wants to merge 2 commits into from

Conversation

ckeen
Copy link

@ckeen ckeen commented Jan 31, 2018

I need these changes to be able to use toot behind a mandatory proxy. I am not that fluent in python so I am proposing this as a proof of concept. If you want me to change it so it will fit the upstream sources better, please do tell.

Thanks!

@ihabunek
Copy link
Owner

Hi! Sorry for ignoring you for a long while.

Turns out that requests has an option to set the proxies via enironment variables. I made the required changes to support these in 7195a05.

Documented here:
https://toot.readthedocs.io/en/latest/advanced.html#using-proxies

Does this work for you?

@ckeen
Copy link
Author

ckeen commented Dec 30, 2018 via email

@ihabunek ihabunek closed this Dec 30, 2018
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.

2 participants