From f2306d5da63a67e46f8d1fc5802369075bfc393a Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 2 Aug 2023 14:55:12 +0000 Subject: [PATCH] fix(middleware-flexible-checksums): await validateChecksumFromResponse call --- .../src/flexibleChecksumsMiddleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts b/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts index 49918dc914721..3cefccfdd9109 100644 --- a/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts +++ b/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts @@ -81,7 +81,7 @@ export const flexibleChecksumsMiddleware = const { requestValidationModeMember, responseAlgorithms } = middlewareConfig; // @ts-ignore Element implicitly has an 'any' type for input[requestValidationModeMember] if (requestValidationModeMember && input[requestValidationModeMember] === "ENABLED") { - validateChecksumFromResponse(result.response as HttpResponse, { + await validateChecksumFromResponse(result.response as HttpResponse, { config, responseAlgorithms, });