diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-02 09:36:56 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-08 13:53:16 +0300 |
commit | dccbed856df131900bf7851fbd11c518f85bce7a (patch) | |
tree | 7d4d7c42ef5156cd24ea06f9316895b0860ce9b2 /lib/mix | |
parent | ea4b6c64d60d1dc3246f5a2f23a2e3a47e8fb476 (diff) | |
download | pleroma-dccbed856df131900bf7851fbd11c518f85bce7a.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.ex | 4 |
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} |