Commit 64dde16d authored by gaoshiyao's avatar gaoshiyao

更新路由设置

parent f47f68e3
......@@ -42,6 +42,8 @@ func getProxyURL(req *http.Request) string {
result = fmt.Sprintf("http://%s%s", config.ProxyHost, path)
} else {
result = fmt.Sprintf("http://%s%s?%s", config.ProxyHost, path, rawQuery)
}
if strings.Contains(result, "?") {
if strings.HasSuffix(result, "/") {
result = strings.TrimRight(result, "/")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment