diff --git a/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts b/packages/middleware-flexible-checksums/src/flexibleChecksumsMiddleware.ts index 49918dc91472..3cefccfdd910 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, });