akkoma/lib/pleroma/http/http.ex
2017-12-30 13:08:36 -05:00

14 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