-
- Downloads
Properly remove authentication to download assets
There is a great deal of complexity in requests surrounding how headers are managed and merged. Since the authentication is applied after headers are merged, using basic authentication can still be applied. Using this context manager ensures it will not be set again. Fix #288 (cherry picked from commit 7b3f589d) Conflicts: tests/unit/test_repos_release.py
Showing
- github3/repos/release.py 3 additions, 3 deletionsgithub3/repos/release.py
- github3/session.py 12 additions, 0 deletionsgithub3/session.py
- tests/cassettes/Asset_download_when_authenticated.json 1 addition, 0 deletionstests/cassettes/Asset_download_when_authenticated.json
- tests/integration/test_repos_release.py 19 additions, 0 deletionstests/integration/test_repos_release.py
- tests/test_repos.py 2 additions, 0 deletionstests/test_repos.py
- tests/unit/test_github_session.py 13 additions, 0 deletionstests/unit/test_github_session.py
- tests/unit/test_repos_release.py 16 additions, 1 deletiontests/unit/test_repos_release.py
This diff is collapsed.
Please register or sign in to comment