mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
15 lines
287 B
Elixir
15 lines
287 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, "")
|
||
|
case proxy do
|
||
|
"" -> options
|
||
|
_ -> options ++ [proxy: proxy]
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|