Skip to content
Snippets Groups Projects
Commit 1f78d23e authored by kaniini's avatar kaniini
Browse files

http: connection: unify adapter configuration and defaults

parent ba48bd90
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment