We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71a1a48 + 33ce9b8 commit 7fe08b3Copy full SHA for 7fe08b3
pkg/experiment/local/client.go
@@ -153,14 +153,10 @@ func (c *Client) Flags() (*string, error) {
153
}
154
155
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"
+ path := "/sdk/v1/flags"
161
ctx, cancel := context.WithTimeout(context.Background(), c.config.FlagConfigPollerRequestTimeout)
162
defer cancel()
163
- req, err := http.NewRequest("GET", endpoint.String(), nil)
+ req, err := http.NewRequest("GET", c.config.ServerUrl+path, nil)
164
if err != nil {
165
return nil, err
166
0 commit comments