jwrookie commented on code in PR #7065:
URL: https://github.com/apache/apisix/pull/7065#discussion_r874796701
##########
conf/config-default.yaml:
##########
@@ -470,3 +470,4 @@ plugin_attr:
connect: 60s
read: 60s
send: 60s
+ redirect_https_port: 8443 # the default port for use by HTTP redirects to
HTTPS
Review Comment:
done
##########
apisix/plugins/redirect.lua:
##########
@@ -148,7 +149,30 @@ 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"])
+ local local_conf = core.config.local_conf()
+ local ret_port = core.table.try_read_attr(local_conf,
Review Comment:
done
--
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]