aboutsummaryrefslogtreecommitdiff
path: root/lib/mix
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-02 09:36:56 +0000
committerrinpatch <rinpatch@sdf.org>2020-09-02 09:36:56 +0000
commitb2d776d77d25eaf8dc789005c856d86e4c38f86d (patch)
treec2ab9bffe8241884adad33a229991ebb45516337 /lib/mix
parent96de4bfbcacb963d85bd94781096e86bab3b7e0f (diff)
parent84fbf1616104c09e0f4f5442d86ca2c573ae4056 (diff)
downloadpleroma-b2d776d77d25eaf8dc789005c856d86e4c38f86d.tar.gz
Merge branch 'http-fixes' into 'develop'
Improvements and fixes for http requests See merge request pleroma/pleroma!2904
Diffstat (limited to 'lib/mix')
-rw-r--r--lib/mix/tasks/pleroma/frontend.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mix/tasks/pleroma/frontend.ex b/lib/mix/tasks/pleroma/frontend.ex
index 2adbf8d72..484af6da7 100644
--- a/lib/mix/tasks/pleroma/frontend.ex
+++ b/lib/mix/tasks/pleroma/frontend.ex
@@ -124,7 +124,9 @@ defmodule Mix.Tasks.Pleroma.Frontend do
url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"])
with {:ok, %{status: 200, body: zip_body}} <-
- Pleroma.HTTP.get(url, [], timeout: 120_000, recv_timeout: 120_000) do
+ Pleroma.HTTP.get(url, [],
+ adapter: [pool: :media, timeout: 120_000, recv_timeout: 120_000]
+ ) do
unzip(zip_body, dest)
else
e -> {:error, e}