Skip to content

Commit

Permalink
rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
gBillal committed Oct 26, 2024
1 parent 7ce76a0 commit 19d7542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/req/finch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ defmodule Req.Finch do
{:status, status}, {acc, req, resp} ->
{acc, req, %{resp | status: status}}

{:headers, headers}, {acc, req, resp} ->
{:headers, fields}, {acc, req, resp} ->
resp =
Enum.reduce(headers, resp, fn {name, value}, resp ->
Enum.reduce(fields, resp, fn {name, value}, resp ->
Req.Response.put_header(resp, name, value)
end)

Expand Down

0 comments on commit 19d7542

Please sign in to comment.