forked from boto/botocore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only set auth_path once, fixes signing errors
Fixes aws/aws-cli#986 The bug was that the fix_s3_host always sets the auth_path to the current path of the request.url. However, in the case of a retried request, we call fix_s3_host again which changes the auth_path to the (already modified) request path. This generates an auth error. The fix now is to check if auth_path is set, and if it is, then we can immediately return.
- Loading branch information
Showing
2 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters