Skip to content

Commit

Permalink
Wrap TunnelProxy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jozuas committed Feb 3, 2025
1 parent 63ce63c commit 1fcfc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mint/tunnel_proxy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule Mint.TunnelProxy do
# Note that we may leak messages if the server sent data after the CONNECT response
case Negotiate.upgrade(proxy_scheme, socket, scheme, hostname, port, opts) do
{:ok, conn} -> {:ok, HTTP.put_proxy_headers(conn, proxy_headers)}
{:error, reason} -> wrap_in_proxy_error(reason)
{:error, reason} -> {:error, wrap_in_proxy_error(reason)}
end
end

Expand Down

0 comments on commit 1fcfc5a

Please sign in to comment.