File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,8 @@ local ignore_fields = {
486
486
[" connection" ] = true ;
487
487
[" content-length" ] = true ;
488
488
[" transfer-encoding" ] = true ;
489
+ -- should be passed as :authority instead
490
+ [" host" ] = true ;
489
491
}
490
492
-- Writes the given headers to the stream; optionally ends the stream at end of headers
491
493
--
Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ function request_methods:go(timeout)
454
454
local old_url = self :to_uri (false )
455
455
host = assert (proxy .host , " proxy is missing host" )
456
456
port = proxy .port or http_util .scheme_to_port [proxy .scheme ]
457
+ tls = (proxy .scheme == " https" )
457
458
-- proxy requests get a uri that includes host as their path
458
459
if not cloned_headers then
459
460
request_headers = request_headers :clone ()
You can’t perform that action at this time.
0 commit comments