diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-03-08 22:59:10 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-03-08 22:59:10 +0000 |
commit | 1f78d23eed1fe80622837bc45831c406de244bef (patch) | |
tree | 76ae3f8ca957e2b7b129efe15cd4be3acf6d293c | |
parent | ba48bd901c3beabb6bcb5af7b8d4232965e0c618 (diff) | |
download | pleroma-1f78d23eed1fe80622837bc45831c406de244bef.tar.gz |
http: connection: unify adapter configuration and defaults
-rw-r--r-- | lib/pleroma/http/connection.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/http/connection.ex b/lib/pleroma/http/connection.ex index 1477c6dd6..c0173465a 100644 --- a/lib/pleroma/http/connection.ex +++ b/lib/pleroma/http/connection.ex @@ -31,6 +31,10 @@ defmodule Pleroma.HTTP.Connection do # defp hackney_options(opts) do options = Keyword.get(opts, :adapter, []) - Keyword.merge(@hackney_options, options) + adapter_options = Pleroma.Config.get([:http, :adapter], []) + + @hackney_options + |> Keyword.merge(adapter_options) + |> Keyword.merge(options) end end |