Skip to content

Commit

Permalink
fix: add basic Hackney 1.22 support: {:connect_error, _} (#754)
Browse files Browse the repository at this point in the history
fixes: #753
  • Loading branch information
halostatue authored Feb 22, 2025
1 parent d26f272 commit 127db9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tesla/adapter/hackney.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ if Code.ensure_loaded?(:hackney) do
end)
end

defp handle({:connect_error, {:error, reason}}, _opts), do: {:error, reason}
defp handle({:error, _} = error, _opts), do: error
defp handle({:ok, status, headers}, _opts), do: {:ok, status, headers, []}

Expand Down

0 comments on commit 127db9f

Please sign in to comment.