Skip to content

Commit 52bf0ff

Browse files
remove seemingly unnecessary step (#675)
this will bring a stream into memory, which can take a lot of memory unnecessarily
1 parent e63f007 commit 52bf0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tesla/adapter/finch.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if Code.ensure_loaded?(Finch) do
7979

8080
defp build(method, url, headers, %Multipart{} = mp) do
8181
headers = headers ++ Multipart.headers(mp)
82-
body = Multipart.body(mp) |> Enum.to_list()
82+
body = Multipart.body(mp)
8383

8484
build(method, url, headers, body)
8585
end

0 commit comments

Comments
 (0)