Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traekfik无法修改带参数的请求 #218

Open
twbworld opened this issue Jul 21, 2023 · 1 comment
Open

traekfik无法修改带参数的请求 #218

twbworld opened this issue Jul 21, 2023 · 1 comment

Comments

@twbworld
Copy link

实现请求/test.html时, 修改请求为/index?u=test

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: test
spec:
  replacePathRegex:
    regex: ^/(.*)\.html$
    replacement: "/index?u=$1"

然而traekfik无法实现, 它会把"?"号当成path部分,对其进行转义,最终被修改为/index%3Fu=test
请教大佬, 这个问题如何解决是好?

@twbworld
Copy link
Author

traefik/traefik#6276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant