From 52bf0ff600cd452471d3fc518f53436f2e48e60f Mon Sep 17 00:00:00 2001 From: Byron Anderson Date: Thu, 9 May 2024 14:45:49 -0600 Subject: [PATCH] remove seemingly unnecessary step (#675) 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 0bf65b6bf..5ed959a6a 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