mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
http: connection: unify adapter configuration and defaults
This commit is contained in:
parent
ba48bd901c
commit
1f78d23eed
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue