mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36: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
|
||||
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue