summaryrefslogtreecommitdiff
path: root/lib/pleroma/http/ex_aws.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-08 17:21:12 +0000
committerrinpatch <rinpatch@sdf.org>2020-09-08 17:21:12 +0000
commit425324aae3d4534bc045466a1cc15653ddfa27d2 (patch)
tree2d785eb4396e2dc79bb6b0bed5d766b393479dd5 /lib/pleroma/http/ex_aws.ex
parent73dd5bdb7dcdf804bdbabcf632671d4de5042ebc (diff)
parent073f5490ece616fd9602382c1be1347457cbbe79 (diff)
Merge branch 'release/2.1.1' into 'stable'v2.1.1
2.1.1 release See merge request pleroma/secteam/pleroma!13
Diffstat (limited to 'lib/pleroma/http/ex_aws.ex')
-rw-r--r--lib/pleroma/http/ex_aws.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/http/ex_aws.ex b/lib/pleroma/http/ex_aws.ex
index e53e64077..c3f335c73 100644
--- a/lib/pleroma/http/ex_aws.ex
+++ b/lib/pleroma/http/ex_aws.ex
@@ -11,6 +11,8 @@ defmodule Pleroma.HTTP.ExAws do
@impl true
def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do
+ http_opts = Keyword.put_new(http_opts, :adapter, pool: :upload)
+
case HTTP.request(method, url, body, headers, http_opts) do
{:ok, env} ->
{:ok, %{status_code: env.status, headers: env.headers, body: env.body}}