From 71eb234a1b032c8bc543c8b2f7d08af8667222f4 Mon Sep 17 00:00:00 2001 From: Byron Anderson Date: Thu, 9 May 2024 12:25:34 -0600 Subject: [PATCH] remove seemingly unnecessary step this will bring a stream into memory, which can take a lot of memory unnecessarily --- lib/tesla/adapter/finch.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tesla/adapter/finch.ex b/lib/tesla/adapter/finch.ex index 0bf65b6b..5ed959a6 100644 --- a/lib/tesla/adapter/finch.ex +++ b/lib/tesla/adapter/finch.ex @@ -79,7 +79,7 @@ if Code.ensure_loaded?(Finch) do defp build(method, url, headers, %Multipart{} = mp) do headers = headers ++ Multipart.headers(mp) - body = Multipart.body(mp) |> Enum.to_list() + body = Multipart.body(mp) build(method, url, headers, body) end