feat(http): make Gun the default HTTP client
Hackney 4 reads every response completely before Pleroma can check its size, so max_body no longer limits downloads or memory there; Gun stops at the limit. Document the Hackney limitation for those who switch back.
This commit is contained in:
parent
1be50ed28b
commit
b2e4580a81
4 changed files with 26 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ config :mime, :types, %{
|
|||
"image/apng" => ["apng"]
|
||||
}
|
||||
|
||||
config :tesla, adapter: Tesla.Adapter.Hackney
|
||||
config :tesla, adapter: Tesla.Adapter.Gun
|
||||
|
||||
# Hackney 4 shares one HTTP/2 connection per host, and closing one response
|
||||
# (as the media proxy does) stops it for every other stream on it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue