zll600 commented on code in PR #10989: URL: https://github.com/apache/apisix/pull/10989#discussion_r1512073158
########## apisix/init.lua: ########## @@ -576,6 +576,13 @@ end function _M.http_access_phase() + if ngx.req.http_version() == 3 then + local upstream_host = ngx.var.host + if ngx.var.server_port then + upstream_host = upstream_host .. ":" .. ngx.var.server_port + end + ngx.var.upstream_host = upstream_host + end Review Comment: It will lost the `port` field by only using `ngx.var.http_host`. Now Could we keep `ngx.var.host + ngx.var.server_port`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
