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

moves host prefix addition to a build step middleware #233

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

skotambkar
Copy link
Contributor

@skotambkar skotambkar commented Nov 1, 2020

Issue #, if available:

Endpoint host prefix addition was being performed after a request was signed. This led to a incorrectly signed request.

Description of changes:

[x] This changes moves the endpoint mutation to a build step middleware, that will be performed before signing.

[x] We also add a DisableEndpointHostPrefix and IsEndpointHostPrefixDisabled method on transport/http which provides an ability to turn host prefixing off. This would be useful when applying customizations or for testing purposes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Related to aws/aws-sdk-go-v2#862 and aws/aws-sdk-go-v2#863

@skotambkar skotambkar merged commit 660ac76 into master Nov 9, 2020
@jasdel jasdel deleted the signedForHostPrefix branch November 25, 2020 17:54
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.

2 participants