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

[bug]http转发到本地时, 如果地址中带参数会报"does not exist" #36

Closed
yinxin630 opened this issue Jul 6, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@yinxin630
Copy link
Contributor

image
image

@yinxin630
Copy link
Contributor Author

补充, 带hash值是可以的

@mickeyinfoshan
Copy link
Contributor

设置的转发规则会把地址中的参数带到生成的最终目标路径,如果需要过滤地址中的参数可以在匹配条件中设置对应的正则表达式,你这里的例子就是
bridge.damai.cn/(.*)(\?.*)?

@yinxin630
Copy link
Contributor Author

bridge.damai.cn/(.*)(\?.*)? 这个不行
bridge.damai.cn/(.*)(?:\?.*) 这样子可以
感觉这处很容易出错, 应该在文档里着重提醒.
另外看看可不可以在程序上规避这种情况, 比如对结果做处理(去掉params和hash)后再匹配本地文件

@mickeyinfoshan
Copy link
Contributor

我先在文档上说补充说明,程序上规避会在近期上想办法

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

No branches or pull requests

2 participants