don't close connection in gun adapter on reusing

This commit is contained in:
Alex S 2019-08-14 17:48:22 +03:00 committed by Ariadne Conill
parent beab94d689
commit 44e2136191

View File

@ -70,6 +70,7 @@ defmodule Pleroma.HTTP do
adapter_opts =
Keyword.get(options, :adapter, [])
|> Keyword.put(:conn, conn)
|> Keyword.put(:close_conn, false)
Keyword.put(options, :adapter, adapter_opts)
end