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

Honor .Netrc when --auth-type is used #934

Closed
wants to merge 5 commits into from
Closed

Honor .Netrc when --auth-type is used #934

wants to merge 5 commits into from

Conversation

velezbeltran
Copy link
Contributor

@velezbeltran velezbeltran commented Jun 16, 2020

I added code so that httpie honors .netrc when --auth-type is used. This was done by explicitly handling the .netrc rather than implicitly leaving it to the requests library. Maybe it would be good to in the future disallow reading the .netrc if the file has too many permissions as is done with some applications (this is also the default behaviour of the python library.) I also added a test to check that the behaviour does work.

#852

@jkbrzt jkbrzt closed this in b865988 Jun 16, 2020
@jkbrzt
Copy link
Member

jkbrzt commented Jun 16, 2020

@nb2838 Going through this realized there was a bunch of netrc-related issues. So I made a bigger commit addressing them all all. I cherry-picked the test you wrote. Thanks for contributing!

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