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

Upgrade Requests dependency to 2.5.1 #451

Merged
merged 2 commits into from
Feb 9, 2015

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Feb 5, 2015

This is the latest request release. It was relatively painless, with the exception of one change to how redirects are handled.

In newer versions of requests, the Authorization
header is removed if a redirect occurs where the new
host does not equal the original host. In the case
of S3 redirects, we know that this is ok so we need
to add back the old behavior. We do this by subclassing
the session and overriding its rebuild_auth() class to
be a no-op. That is, it just keeps the auth from the
original request.

Only new change I added is jamesls@0c9790d

Verified clean runs of the botocore/aws-cli unit and integration tests.

cc @kyleknap @danielgtaylor

In newer versions of requests, the Authorization
header is removed if a redirect occurs where the new
host does not equal the original host.  In the case
of S3 redirects, we know that this is ok so we need
to add back the old behavior.  We do this by subclassing
the session and overriding its rebuild_auth() class to
be a no-op.  That is, it just keeps the auth from the
original request.
@jamesls
Copy link
Member Author

jamesls commented Feb 5, 2015

Should also fix #266

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.56%) to 93.64% when pulling 0c9790d on jamesls:requests-upgrade-2.5.1 into 30bd64c on boto:develop.

@kyleknap
Copy link
Contributor

kyleknap commented Feb 9, 2015

LGTM 🚢

@jamesls jamesls merged commit 0c9790d into boto:develop Feb 9, 2015
jamesls added a commit that referenced this pull request Feb 9, 2015
Closes #451
Fixes #266

* requests-upgrade-2.5.1:
  Disable auth rebuilding on redirects
  Upgrade requests to 2.5.1
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.

3 participants