correct pool and uniform headers format

This commit is contained in:
Alexander Strizhakov 2020-09-02 09:16:51 +03:00
commit 79f65b4374
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 14 additions and 10 deletions

View file

@ -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}