Skip to content

Commit

Permalink
fix(middleware-flexible-checksums): await validateChecksumFromRespons…
Browse files Browse the repository at this point in the history
…e call (#5043)
  • Loading branch information
kuhe authored Aug 2, 2023
1 parent a1659e7 commit a11ad5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit a11ad5f

Please sign in to comment.