From e48545cdc8e8fe4760e3cc9abf8e6d7e1ad4c352 Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Tue, 29 Sep 2020 09:04:04 -0700 Subject: [PATCH] chore(middleware-host-header): move to low priority (#1540) 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. --- packages/middleware-host-header/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/middleware-host-header/src/index.ts b/packages/middleware-host-header/src/index.ts index fb5d3df0fd47..db9020852b0a 100644 --- a/packages/middleware-host-header/src/index.ts +++ b/packages/middleware-host-header/src/index.ts @@ -35,6 +35,7 @@ export const hostHeaderMiddleware =