From 447533a0629b9bbfe93f1abea70558d2d8221dd7 Mon Sep 17 00:00:00 2001 From: Johan <184952+gustafsson@users.noreply.github.com> Date: Tue, 18 Oct 2022 18:23:54 +0200 Subject: [PATCH] connectionlayer: sslupgrade(socket_type_tls) fixup (#941) (#943) The sockettype for ConnectionPool.sslupgrade should depend on target_url rather than url. These are not necessarily on the same schema. I.e if "https_proxy=http://..." --- src/clientlayers/ConnectionRequest.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientlayers/ConnectionRequest.jl b/src/clientlayers/ConnectionRequest.jl index 1281bf641..743b19e2f 100644 --- a/src/clientlayers/ConnectionRequest.jl +++ b/src/clientlayers/ConnectionRequest.jl @@ -102,7 +102,7 @@ function connectionlayer(handler) return r end if target_url.scheme in ("https", "wss") - io = ConnectionPool.sslupgrade(IOType, io, target_url.host; readtimeout=readtimeout, kw...) + io = ConnectionPool.sslupgrade(socket_type_tls, io, target_url.host; readtimeout=readtimeout, kw...) end req.headers = filter(x->x.first != "Proxy-Authorization", req.headers) end