Commit 6412de60 authored by Alexander Strizhakov's avatar Alexander Strizhakov

more fixes for mint

parent 5b837592
Pipeline #17047 failed with stages
in 2 minutes and 53 seconds
......@@ -48,8 +48,13 @@ defmodule Pleroma.ReverseProxy.Client.Tesla do
def stream_body(client) do
case read_chunk!(client) do
# Gun cases
{:fin, body} -> {:ok, body, Map.put(client, :fin, true)}
{:nofin, part} -> {:ok, part, client}
# Mint cases
{:fin, conn, body} -> {:ok, body, Map.put(client, :fin, true)}
{:nofin, conn, part} -> {:ok, part, Map.put(client, :conn, conn)}
# common cases
{:error, error} -> {:error, error}
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment