From e74b6ae091e0931f45add524b2ea3c39ed9b3980 Mon Sep 17 00:00:00 2001 From: Tyler-Larkin Date: Thu, 9 Jan 2025 18:02:31 -0800 Subject: [PATCH] fix(aws_common): removed JS streamed requests --- packages/aws_common/lib/src/http/aws_http_client_js.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/aws_common/lib/src/http/aws_http_client_js.dart b/packages/aws_common/lib/src/http/aws_http_client_js.dart index c764995b6c..e2f444177f 100644 --- a/packages/aws_common/lib/src/http/aws_http_client_js.dart +++ b/packages/aws_common/lib/src/http/aws_http_client_js.dart @@ -72,12 +72,7 @@ class AWSHttpClientImpl extends AWSHttpClient { }, ).takeUntil(cancelTrigger.future); Object body; - if (request.scheme == 'http' || - supportedProtocols.supports(AlpnProtocol.http1_1)) { - body = Uint8List.fromList(await collectBytes(stream)); - } else { - body = stream; - } + body = Uint8List.fromList(await collectBytes(stream)); if (completer.isCanceled) return; final resp = await fetch(