aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

fix: update redirect logic to also update path

Open CaerusKaru opened this issue 2 years ago • 3 comments

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

CaerusKaru avatar Mar 18 '22 21:03 CaerusKaru

@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.

CaerusKaru avatar Mar 29 '22 16:03 CaerusKaru

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.

github-actions[bot] avatar Mar 30 '23 00:03 github-actions[bot]

Please do not close. Internal issue that should be addressed.

CaerusKaru avatar Mar 30 '23 00:03 CaerusKaru