From 8931bb02a13f8ac713cce9f8c9608a057f101e5c Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Tue, 20 Jun 2023 21:02:37 +0100 Subject: [PATCH] Flush body, when not expecting anything --- Sources/SotoCore/AWSClient.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/SotoCore/AWSClient.swift b/Sources/SotoCore/AWSClient.swift index 004ee0485..7c9b2fe62 100644 --- a/Sources/SotoCore/AWSClient.swift +++ b/Sources/SotoCore/AWSClient.swift @@ -259,7 +259,8 @@ extension AWSClient { configuration: serviceConfig ) }, - processResponse: { _ in + processResponse: { response in + for try await _ in response.body {} return }, config: serviceConfig, @@ -291,7 +292,8 @@ extension AWSClient { configuration: serviceConfig ) }, - processResponse: { _ in + processResponse: { response in + for try await _ in response.body {} return }, config: serviceConfig,