Skip to content

Commit

Permalink
fix(aws_common): removed JS streamed requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Jan 10, 2025
1 parent 6e7a4f8 commit e74b6ae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/aws_common/lib/src/http/aws_http_client_js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e74b6ae

Please sign in to comment.