You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/05/10 04:48:13 UTC

[GitHub] [apisix] spacewander commented on a diff in pull request #6686: fix(redirect): set redirect server port when enable http_to_https

spacewander commented on code in PR #6686:
URL: https://github.com/apache/apisix/pull/6686#discussion_r868812645


##########
apisix/plugins/redirect.lua:
##########
@@ -147,6 +148,7 @@ function _M.rewrite(conf, ctx)
     core.log.info("plugin rewrite phase, conf: ", core.json.delay_encode(conf))
 
     local ret_code = conf.ret_code
+    local ret_port = tonumber(ctx.var["var_x_forwarded_port"])

Review Comment:
   Maybe we can read the correct port from `config.yaml`?



-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org