Merge branch 'http-fixes' into 'develop'
Improvements and fixes for http requests See merge request pleroma/pleroma!2904
This commit is contained in:
parent
ea4b6c64d6
commit
dccbed856d
13 changed files with 95 additions and 57 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue