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:
Lain Soykaf 2026-10-22 16:31:44 +04:00
commit b2e4580a81
No known key found for this signature in database
4 changed files with 26 additions and 1 deletions

View file

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