StretchV opened a new issue #4536:
URL: https://github.com/apache/apisix/issues/4536


   ### Issue description
   
我想在apisix中将请求的path中前一部分截取掉然后传入到上游,但是apisix中似乎只有proxy_rewrite这个插件,但是路径中往往会有'%2F'这样的转义符号,例如:http://XXX.myscrm.cn/服务名/api/projects/qweqwe%2Fqweqwe/master/files/proto%2Fsource
   
这样的请求,url中的"qweqwe%2Fqweqwe"这对于服务来讲其实是一种参数,而这种请求在被proxy_rewrite重写后,"%2F"就会被转义成"/",这样请求到服务后就会出问题,所以我希望能在apisix中找到类似kong中strip_path这类的方法,就是单纯的将path一部分截取掉然后传入上游,请问有这样的插件吗
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):2.3
   
   


-- 
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]


Reply via email to