Skip to content

Commit

Permalink
remove redundant logic
Browse files Browse the repository at this point in the history
Signed-off-by: revolyssup <ashishjaitiwari15112000@gmail.com>
  • Loading branch information
Revolyssup committed Jul 13, 2023
1 parent 4c295dc commit bf18116
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apisix/plugins/proxy-rewrite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -350,17 +350,6 @@ function _M.rewrite(conf, ctx)
ctx.var.upstream_uri = upstream_uri
end

if conf.use_real_request_uri_unsafe and conf.regex_uri then
local index
if separator_escaped then
index = str_find(upstream_uri,"?")
end
if index then
upstream_uri = sub_str(upstream_uri, 1, index - 1)
..sub_str(upstream_uri,index)
end
ctx.var.upstream_uri = upstream_uri
end
if conf.headers then
local hdr_op, err = core.lrucache.plugin_ctx(lrucache, ctx, nil,
create_header_operation, conf.headers)
Expand Down

0 comments on commit bf18116

Please sign in to comment.