Skip to content

Commit

Permalink
http/h1_srequest: make sure we start tls when using a https proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
daurnimator committed Mar 6, 2019
1 parent ca72142 commit 2356f9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ function request_methods:go(timeout)
local old_url = self:to_uri(false)
host = assert(proxy.host, "proxy is missing host")
port = proxy.port or http_util.scheme_to_port[proxy.scheme]
tls = (proxy.scheme == "https")
-- proxy requests get a uri that includes host as their path
if not cloned_headers then
request_headers = request_headers:clone()
Expand Down

0 comments on commit 2356f9c

Please sign in to comment.