Skip to content

A path-concatenation bug in the HTTP-to-HTTP gateway configuration file. #5265

@WenJie199

Description

@WenJie199
Image Image Image

问题描述:

  1. Prefix+Path路径拼接并不会转发请求。
  2. Path写全路径,Prefix为空(会进行路劲拼接的,所以为空),就能正确拼接路径,并转发请求。

问题复现:
1.起一个api服务
2.gateway.yaml配置文件内容如下:

Image

3.主函数如下:

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions