Browse Source

perf(dynamite_runtime): avoid unnecessary Uint8List.toList

Signed-off-by: Nikolas Rimikis <rimikis.nikolas@gmail.com>
pull/592/head
Nikolas Rimikis 1 year ago
parent
commit
3d545a555a
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/dynamite/dynamite_runtime/lib/src/http_client.dart

2
packages/dynamite/dynamite_runtime/lib/src/http_client.dart

@ -140,7 +140,7 @@ class DynamiteClient {
request.headers.add(header.key, header.value); request.headers.add(header.key, header.value);
} }
if (body != null) { if (body != null) {
request.add(body.toList()); request.add(body);
} }
if (cookieJar != null) { if (cookieJar != null) {
request.cookies.addAll(await cookieJar!.loadForRequest(uri)); request.cookies.addAll(await cookieJar!.loadForRequest(uri));

Loading…
Cancel
Save