diff --git a/http/http.go b/http/http.go index d233522..59c8230 100644 --- a/http/http.go +++ b/http/http.go @@ -323,9 +323,12 @@ func populateContentType(res *httpResponse, resp *http.Response) error { } // urlForCall patches together a URL for a call. -func urlForCall(base *url.URL, endpoint string, query string) *url.URL { +func urlForCall(base *url.URL, + endpoint string, + query string, +) *url.URL { callURL := *base - callURL.Path = endpoint + callURL.Path += endpoint if callURL.RawQuery == "" { callURL.RawQuery = query } else if query != "" {