Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws_common): removed JS streamed requests #5797

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading