From 1fcfc5a39a6b96aad7a0ad7b9501b0191f87b664 Mon Sep 17 00:00:00 2001 From: Juozas Norkus Date: Mon, 3 Feb 2025 09:43:58 +0000 Subject: [PATCH] Wrap TunnelProxy errors --- lib/mint/tunnel_proxy.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mint/tunnel_proxy.ex b/lib/mint/tunnel_proxy.ex index de6de28b..7116c265 100644 --- a/lib/mint/tunnel_proxy.ex +++ b/lib/mint/tunnel_proxy.ex @@ -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