Skip to content

Commit

Permalink
fix windows test?
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Feb 27, 2024
1 parent 0e16ea0 commit f07420b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiclient/client_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func (c *ApiClient) NewRequest(method, url string, body interface{}) (*http.Request, error) {
if !strings.HasSuffix(c.BaseURL.Path, "/") {
if !strings.HasSuffix(c.BaseURL.Path, "/") && !strings.HasPrefix(c.BaseURL.Path, "http") {
return nil, fmt.Errorf("BaseURL must have a trailing slash, but %q does not", c.BaseURL)
}

Expand Down

0 comments on commit f07420b

Please sign in to comment.