aws-sdk-js
aws-sdk-js copied to clipboard
fix: update redirect logic to also update path
When a 307 redirect comes in, it contains the new, full URL for the location change.
The current logic respects this for the Host
header that gets sent, but it does not
then update the path, leading to possibly invalid redirects. The new logic pulls the
path out of the endpoint and updates the outgoing request.
Checklist
- [x]
npm run test
passes
Ref: Ticket ID V544628989
@AllanZhengYP Added the CHANGELOG entry following the contribution guidelines, please let me know if you need anything else. The commit name is weird because I did it through GitHub Dev online, so hopefully you can squash it before release.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
Please do not close. Internal issue that should be addressed.