This commit is contained in:
byte[] 2021-03-17 17:30:34 -04:00
parent 99952f9780
commit b7ac164afd

View file

@ -23,8 +23,11 @@ defmodule Philomena.Http do
end
end
defp proxy_opts(%{host: host, port: port, scheme: "https"}), do: {:https, host, port, []}
defp proxy_opts(%{host: host, port: port, scheme: "http"}), do: {:http, host, port, []}
defp proxy_opts(%{host: host, port: port, scheme: "https"}),
do: {:https, host, port, [transport_opts: [inet6: true]]}
defp proxy_opts(%{host: host, port: port, scheme: "http"}),
do: {:http, host, port, [transport_opts: [inet6: true]]}
defp client(headers) do
Tesla.client(