Skip to content

Commit

Permalink
remove seemingly unnecessary step (#675)
Browse files Browse the repository at this point in the history
this will bring a stream into memory, which can take a lot of memory unnecessarily
  • Loading branch information
byronanderson authored May 9, 2024
1 parent e63f007 commit 52bf0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla/adapter/finch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52bf0ff

Please sign in to comment.