Skip to content

Commit

Permalink
Retain path in URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed May 24, 2024
1 parent df610fd commit 97b1909
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 97b1909

Please sign in to comment.