Skip to content

Commit 7fe08b3

Browse files
authored
Merge pull request #4 from chandrajeetn/MLE-14927
not parsing the url so that it can use papig path
2 parents 71a1a48 + 33ce9b8 commit 7fe08b3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/experiment/local/client.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,10 @@ func (c *Client) Flags() (*string, error) {
153153
}
154154

155155
func (c *Client) doFlags() (*string, error) {
156-
endpoint, err := url.Parse(c.config.ServerUrl)
157-
if err != nil {
158-
return nil, err
159-
}
160-
endpoint.Path = "sdk/v1/flags"
156+
path := "/sdk/v1/flags"
161157
ctx, cancel := context.WithTimeout(context.Background(), c.config.FlagConfigPollerRequestTimeout)
162158
defer cancel()
163-
req, err := http.NewRequest("GET", endpoint.String(), nil)
159+
req, err := http.NewRequest("GET", c.config.ServerUrl+path, nil)
164160
if err != nil {
165161
return nil, err
166162
}

0 commit comments

Comments
 (0)