fix 修复没有拼接上base url的bug
This commit is contained in:
parent
ee3f7ce41b
commit
9cb1dba3f0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user