mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
two more
This commit is contained in:
parent
99952f9780
commit
b7ac164afd
1 changed files with 5 additions and 2 deletions
|
@ -23,8 +23,11 @@ defmodule Philomena.Http do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp proxy_opts(%{host: host, port: port, scheme: "https"}), do: {:https, host, port, []}
|
defp proxy_opts(%{host: host, port: port, scheme: "https"}),
|
||||||
defp proxy_opts(%{host: host, port: port, scheme: "http"}), do: {:http, host, port, []}
|
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
|
defp client(headers) do
|
||||||
Tesla.client(
|
Tesla.client(
|
||||||
|
|
Loading…
Reference in a new issue