Acknowledgements
Describe the bug
Happend on handle 307 response.
Like Authorzation, if the host has been changed, the X-Amz-Security-Token should also be remove from request.
Regression Issue
Expected Behavior
do not send X-Amz-Security-Token after 307 to a different host
Current Behavior
Now aws-sdk-go-v2 handle 307 response through http stdlib. It will remove the Authorzation header if host changed but X-Amz-Security-Token not.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
latest
Compiler and Version used
1.25.5
Operating System and version
Linux
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...)Describe the bug
Happend on handle 307 response.
Like
Authorzation, if the host has been changed, theX-Amz-Security-Tokenshould also be remove from request.Regression Issue
Expected Behavior
do not send
X-Amz-Security-Tokenafter 307 to a different hostCurrent Behavior
Now
aws-sdk-go-v2handle 307 response through http stdlib. It will remove theAuthorzationheader if host changed butX-Amz-Security-Tokennot.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
latest
Compiler and Version used
1.25.5
Operating System and version
Linux