Skip to content

Commit

Permalink
Update lib/finch.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach authored Nov 14, 2023
1 parent 508721f commit c5a123a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/finch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,10 @@ defmodule Finch do
Finch.HTTP2.Pool

nil ->
case valid[:protocols] do
[:http1] ->
Finch.HTTP1.Pool

[:http2] ->
Finch.HTTP2.Pool

[:http1, :http2] ->
Finch.HTTP1.Pool
if :http1 in valid[:protocols] do
Finch.HTTP1.Pool
else
Finch.HTTP2.Pool
end
end

Expand Down

0 comments on commit c5a123a

Please sign in to comment.