qwzhou89 commented on issue #9818:
URL: https://github.com/apache/apisix/issues/9818#issuecomment-1633421631
> You will see that i get `"path": "/api02/base64/api01/abc123"` and
`"path": "/L2FwaTAxL2FiYzEyMw=="` respectively when it should be `"path":
"/api02/base64/L2FwaTAxL2FiYzEyMw=="`.
去掉"proxy-rewrite"插件的里面的regex_uri配置,然后在serverless-post-function with "phase":
里面添加/api02/base64/不就可以了吗?
"serverless-post-function": {
"functions": ["return function(conf, ctx)\n ctx.var.upstream_uri =
\"/api02/base64/\" .. ngx.encode_base64(ctx.var.real_request_uri);\nend\n"],
"phase": "access"
}
--
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]