ilteriseroglu-ty commented on code in PR #7401:
URL: https://github.com/apache/apisix/pull/7401#discussion_r917999796
##########
apisix/plugins/proxy-rewrite.lua:
##########
@@ -161,7 +166,9 @@ function _M.rewrite(conf, ctx)
end
local upstream_uri = ctx.var.uri
- if conf.uri ~= nil then
+ if conf.use_real_request_uri_unsafe then
+ upstream_uri = core.utils.resolve_var("real_request_uri", ctx.var)
Review Comment:
Updated to use `ctx.var.real_request_uri`
--
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]