http.ex 289 Bytes
Newer Older
1
2
3
4
5
6

defmodule Pleroma.HTTP do
  use HTTPoison.Base

  def process_request_options(options) do
    config = Application.get_env(:pleroma, :http, [])
jeff's avatar
jeff committed
7
    proxy = Keyword.get(config, :proxy_url, nil)
8
    case proxy do
jeff's avatar
jeff committed
9
      nil -> options
10
11
12
13
14
      _ -> options ++ [proxy: proxy]
    end
  end

end