Merge branch 'bugfix/mastoapi-lists' into 'develop'
[akkoma] / lib / pleroma / http / ex_aws.ex
index 2fe8beafc79777cb1e2ab2935f4d8c67c4929b81..c3f335c7326cc62471d08773ba70e894f6c81465 100644 (file)
@@ -11,7 +11,7 @@ defmodule Pleroma.HTTP.ExAws do
 
   @impl true
   def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do
-    http_opts = Keyword.put(http_opts, :adapter, pool: :upload)
+    http_opts = Keyword.put_new(http_opts, :adapter, pool: :upload)
 
     case HTTP.request(method, url, body, headers, http_opts) do
       {:ok, env} ->