Skip to content

Commit 2356f9c

Browse files
committed
http/h1_srequest: make sure we start tls when using a https proxy
1 parent ca72142 commit 2356f9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http/request.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ function request_methods:go(timeout)
454454
local old_url = self:to_uri(false)
455455
host = assert(proxy.host, "proxy is missing host")
456456
port = proxy.port or http_util.scheme_to_port[proxy.scheme]
457+
tls = (proxy.scheme == "https")
457458
-- proxy requests get a uri that includes host as their path
458459
if not cloned_headers then
459460
request_headers = request_headers:clone()

0 commit comments

Comments
 (0)