fix(deps): update Gun to 2.4.1

This commit is contained in:
Lain Soykaf 2026-07-17 21:09:13 +04:00
commit b862254889
No known key found for this signature in database
6 changed files with 53 additions and 7 deletions

View file

@ -38,7 +38,16 @@ defmodule Pleroma.HTTP.Adapter.Gun do
method = Tesla.Adapter.Shared.format_method(env.method)
{headers, body, send_body} = prepare_body(env.headers, env.body, opts[:send_body])
request_opts = request_opts(opts[:reply_to], tunnel)
stream = open_stream(conn, method, path, headers, body, request_opts, send_body)
stream =
try do
open_stream(conn, method, path, headers, body, request_opts, send_body)
catch
kind, reason ->
ConnectionPool.release_conn(conn)
:erlang.raise(kind, reason, __STACKTRACE__)
end
:ok = ConnectionPool.register_stream(conn, stream)
:ok = send_stream_body(conn, stream, body, send_body)
response = read_response(conn, stream, opts)