Merge branch 'hotfix/tesla-env-no-access' into 'develop'

ConnectionPool middleware: fix a crash due to unimplemented behaviour

See merge request pleroma/pleroma!2958
This commit is contained in:
rinpatch 2020-09-05 18:18:49 +00:00
commit b42869424f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ defmodule Pleroma.Tesla.Middleware.ConnectionPool do
{:ok, env} ->
unless opts[:adapter][:body_as] == :chunks do
ConnectionPool.release_conn(conn_pid)
{:ok, pop_in(env[:opts][:adapter][:conn])}
{:ok, pop_in(env.opts[:adapter][:conn])}
else
{:ok, env}
end