From 9cb1dba3f0f06d6a28a73e8a82061bf4fd7c3b0b Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 10 Dec 2024 14:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E4=B8=8Abase=20url=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/coach-client/us.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/coach-client/us.go b/pkg/coach-client/us.go index 0a3c860..2fdc2dc 100644 --- a/pkg/coach-client/us.go +++ b/pkg/coach-client/us.go @@ -115,7 +115,8 @@ func tryRequest(ctx context.Context, base, urlPath string, respData any, proxyGe } func callByProxy(ctx context.Context, p proxy2.Proxy, base, urlPath string, result any) (*resty.Response, error) { - addr, err := proxy.UrlToMetadata(urlPath) + full, _ := url.JoinPath(base, urlPath) + addr, err := proxy.UrlToMetadata(full) if err != nil { return nil, err }