fix
This commit is contained in:
parent
1f6b2a3d43
commit
33e7657fcc
@ -26,14 +26,14 @@ defmodule Pleroma.ReverseProxy.Client.Tesla do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp read_chunk!(client) do
|
defp read_chunk!(%{pid: pid, stream: stream, opts: opts}) do
|
||||||
adapter = Application.get_env(:tesla, :adapter)
|
adapter = Application.get_env(:tesla, :adapter)
|
||||||
|
|
||||||
unless adapter in @adapters do
|
unless adapter in @adapters do
|
||||||
raise "#{adapter} doesn't support reading body in chunks"
|
raise "#{adapter} doesn't support reading body in chunks"
|
||||||
end
|
end
|
||||||
|
|
||||||
adapter.read_chunk(client)
|
adapter.read_chunk(pid, stream, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def close(client) do
|
def close(client) do
|
||||||
|
Loading…
Reference in New Issue
Block a user