From 3d545a555a26a31fdd149b2a45f7d49f6724fd1c Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Thu, 24 Aug 2023 22:08:32 +0200 Subject: [PATCH] perf(dynamite_runtime): avoid unnecessary Uint8List.toList Signed-off-by: Nikolas Rimikis --- packages/dynamite/dynamite_runtime/lib/src/http_client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamite/dynamite_runtime/lib/src/http_client.dart b/packages/dynamite/dynamite_runtime/lib/src/http_client.dart index 53141502..04d49176 100644 --- a/packages/dynamite/dynamite_runtime/lib/src/http_client.dart +++ b/packages/dynamite/dynamite_runtime/lib/src/http_client.dart @@ -140,7 +140,7 @@ class DynamiteClient { request.headers.add(header.key, header.value); } if (body != null) { - request.add(body.toList()); + request.add(body); } if (cookieJar != null) { request.cookies.addAll(await cookieJar!.loadForRequest(uri));