Establish the TLS connection with the client earlier
authorFabian Keil <fk@fabiankeil.de>
Sat, 6 Mar 2021 16:34:39 +0000 (17:34 +0100)
committerFabian Keil <fk@fabiankeil.de>
Fri, 12 Mar 2021 11:34:11 +0000 (12:34 +0100)
commitc8db6199d973c89f06a159770618eb63d0b0d873
treeda3c6934aa18da952ead42f5ebf9e539d0d62793
parent14a75d6ed20b27322f8764c96a24ce1c6a19bc54
Establish the TLS connection with the client earlier

... and decide how to route the request afterwards.

This allows to change the forwarding settings based
on information from the https-inspected request,
for example the path.

Adjust build_request_line() to create a CONNECT
request line when https-inspecting and forwarding
to a HTTP proxy.

Fixes SF bug #925 reported by Wen Yue.
jcc.c