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

chore(middleware-host-header): move to low priority #1540

Merged
merged 1 commit into from
Sep 29, 2020

Conversation

AllanZhengYP
Copy link
Contributor

Description of changes:

AWS Signer requires a request to contain a host header, mostly the same as the request's hostname.
For the customizations that modifies the request's hostname, they need to be applied before this
middleware, Otherwise the hostname and host header would mismatch. It mean these middleware
must be applied relatively before this middleware. By moving it low priority, it reduce the possibility
of mistakenly adding customizations applied after this middleware. Developers only need to apply the
customizations to the build step, and they will be applied before this middleware by default.

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

AWS Signer requires a request to contain a `host` header, mostly the same as the request's `hostname`. 
For the customizations that modifies the request's `hostname`, they need to be applied before this 
middleware, Otherwise the `hostname` and `host` header would mismatch. It mean these middleware
**must** be applied relatively before this middleware. By moving it low priority, it reduce the possibility 
of mistakenly adding customizations applied after this middleware. Developers only need to apply the
customizations to the `build` step, and they will be applied before this middleware by default.
@AllanZhengYP AllanZhengYP merged commit e48545c into master Sep 29, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2021
@trivikr trivikr deleted the AllanFly120-patch-2 branch May 14, 2021 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants