File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,14 @@ func (c *Client) FlagsV2() (string, error) {
149149
150150func (c * Client ) doFlagsV2 () (map [string ]* evaluation.Flag , error ) {
151151 client := & http.Client {}
152- endpoint , err := url .Parse (c .config .ServerUrl )
153- if err != nil {
154- return nil , err
152+ endpoint := c .config .ServerUrl
153+ Path := "/sdk/v2/flags"
154+ if endpoint != "" && endpoint [len (endpoint )- 1 ] == '/' {
155+ Path = "sdk/v2/flags"
155156 }
156- endpoint .Path = "sdk/v2/flags"
157- endpoint .RawQuery = "v=0"
158157 ctx , cancel := context .WithTimeout (context .Background (), c .config .FlagConfigPollerRequestTimeout )
159158 defer cancel ()
160- req , err := http .NewRequest ("GET" , endpoint . String () , nil )
159+ req , err := http .NewRequest ("GET" , endpoint + Path , nil )
161160 if err != nil {
162161 return nil , err
163162 }
You can’t perform that action at this time.
0 commit comments