diff options
author | rinpatch <rinpatch@sdf.org> | 2019-01-13 13:38:28 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-01-13 13:38:28 +0300 |
commit | e4dc3f71aea900e566c0d66ddffc5cd57e3920dd (patch) | |
tree | d0b0edfd3c7aa4c2015b0b461a4c40895e16eba9 /lib/pleroma/http | |
parent | 9a6236e69d2709c0df374574fd77c4b2bc3d68fb (diff) | |
parent | 19b6a8239387869c69c6885044ee488d097b723f (diff) | |
download | pleroma-e4dc3f71aea900e566c0d66ddffc5cd57e3920dd.tar.gz |
Resolve merge conflict
Diffstat (limited to 'lib/pleroma/http')
-rw-r--r-- | lib/pleroma/http/connection.ex | 5 | ||||
-rw-r--r-- | lib/pleroma/http/http.ex | 7 | ||||
-rw-r--r-- | lib/pleroma/http/request_builder.ex | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/lib/pleroma/http/connection.ex b/lib/pleroma/http/connection.ex index 7b11060b2..699d80cd7 100644 --- a/lib/pleroma/http/connection.ex +++ b/lib/pleroma/http/connection.ex @@ -1,10 +1,13 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.HTTP.Connection do @moduledoc """ Connection for http-requests. """ @hackney_options [ - pool: :default, timeout: 10000, recv_timeout: 20000, follow_redirect: true diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index 3c0256575..b8103cef6 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -1,3 +1,7 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.HTTP do @moduledoc """ @@ -6,6 +10,8 @@ defmodule Pleroma.HTTP do alias Pleroma.HTTP.Connection alias Pleroma.HTTP.RequestBuilder, as: Builder + @type t :: __MODULE__ + @doc """ Builds and perform http request. @@ -50,7 +56,6 @@ defmodule Pleroma.HTTP do def process_request_options(options) do config = Application.get_env(:pleroma, :http, []) proxy = Keyword.get(config, :proxy_url, nil) - options = options ++ [adapter: [pool: :default]] case proxy do nil -> options diff --git a/lib/pleroma/http/request_builder.ex b/lib/pleroma/http/request_builder.ex index 5aee2b8ae..bffc7c6fe 100644 --- a/lib/pleroma/http/request_builder.ex +++ b/lib/pleroma/http/request_builder.ex @@ -1,3 +1,7 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.HTTP.RequestBuilder do @moduledoc """ Helper functions for building Tesla requests |