Switch Gun to streaming instead of chunking the request

This commit is contained in:
Mark Felder 2024-06-05 09:49:37 -04:00
parent bf8b251dc1
commit 7237cb9c46

View file

@ -20,7 +20,7 @@ defmodule Pleroma.ReverseProxy.Client.Tesla do
def request(method, url, headers, body, opts \\ []) do
check_adapter()
opts = Keyword.put(opts, :body_as, :chunks)
opts = Keyword.merge(opts, body_as: :stream, close_conn: false)
with {:ok, response} <-
Pleroma.HTTP.request(