File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,8 @@ local ignore_fields = {
486486 [" connection" ] = true ;
487487 [" content-length" ] = true ;
488488 [" transfer-encoding" ] = true ;
489+ -- should be passed as :authority instead
490+ [" host" ] = true ;
489491}
490492-- Writes the given headers to the stream; optionally ends the stream at end of headers
491493--
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments