Skip to content

Commit 727cb0f

Browse files
authored
fix: handle HTTP response trailers when use Finch + stream (#767)
pattern match trailers
1 parent 1196bc6 commit 727cb0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tesla/adapter/finch.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ if Code.ensure_loaded?(Finch) do
112112
{:status, status}, _acc -> status
113113
{:headers, headers}, status -> send(owner, {ref, {:status, status, headers}})
114114
{:data, data}, _acc -> send(owner, {ref, {:data, data}})
115+
{:trailers, trailers}, _acc -> trailers
115116
end
116117

117118
task =

0 commit comments

Comments
 (0)