http: connection: merge hackney option lists instead of concatenating them
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 7 Mar 2019 23:31:59 +0000 (23:31 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 8 Mar 2019 22:56:16 +0000 (22:56 +0000)
this ensures the right pools are used

lib/pleroma/http/connection.ex

index b798eaa5ac63e54dc079b9ed20732f85d0a9600e..cc2e96e2b28302fc36af84ddc261a8567fddbbc4 100644 (file)
@@ -31,6 +31,6 @@ defmodule Pleroma.HTTP.Connection do
   #
   defp hackney_options(opts) do
     options = Keyword.get(opts, :adapter, [])
-    @hackney_options ++ options
+    Keyword.merge(@hackney_options, options)
   end
 end