mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-24 07:16:18 +00:00
14 lines
288 B
Elixir
14 lines
288 B
Elixir
defmodule Pleroma.HTTP do
|
|
use HTTPoison.Base
|
|
|
|
def process_request_options(options) do
|
|
config = Application.get_env(:pleroma, :http, [])
|
|
proxy = Keyword.get(config, :proxy_url, nil)
|
|
|
|
case proxy do
|
|
nil -> options
|
|
_ -> options ++ [proxy: proxy]
|
|
end
|
|
end
|
|
end
|