Skip to content

Commit

Permalink
feat(balancer): fix code
Browse files Browse the repository at this point in the history
Signed-off-by: owl <ouyangjun1999@gmail.com>
  • Loading branch information
oowl committed Jul 28, 2023
1 parent a6ee39c commit 0bc10f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kong/runloop/balancer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ local function set_host_header(balancer_data, upstream_scheme, upstream_host, is

var.upstream_host = new_upstream_host

-- stream module does not support ngx.balancer.recreate_request
-- stream module does not support ngx.balancer.recreate_request
-- and we do not need to recreate the request in balancer_by_lua
-- some nginx proxy variables will compile when init upstream ssl connection
-- https://github.com/nginx/nginx/blob/master/src/stream/ngx_stream_proxy_module.c#L1070
if is_balancer_phase and is_http_module then
return recreate_request()
end
Expand Down

0 comments on commit 0bc10f2

Please sign in to comment.