Compare commits

..

2 Commits

Author SHA1 Message Date
Max1Truc
d3688d411a
Merge 8051b1189836836fb65e1e13355442427d793e1a into 13f2b3c663d9fa5c464782a0bfccb30bcc017b0c 2023-11-21 21:51:47 +00:00
Max1Truc
8051b11898 fix(http): use the right protocol for proxies
Previously, if doing a request to http://website.example.org
 through https://proxy.example.org, luasocket wouldn't use TLS
 and vice-versa
2023-11-21 22:42:15 +01:00

View File

@ -293,7 +293,6 @@ local function adjustrequest(reqt)
end
-- ajust host and port if there is a proxy
local proxy_create
nreqt.host, nreqt.port, proxy_create = adjustproxy(nreqt)
if not reqt.create then nreqt.create = proxy_create end