Skip to content

Commit

Permalink
add as param
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed Feb 21, 2024
1 parent 6a538c9 commit 674f07a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion featureflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,15 @@ func (poller *FeatureFlagsPoller) decide(requestData []byte, headers [][2]string
}

func (poller *FeatureFlagsPoller) localEvaluationFlags(headers [][2]string) (*http.Response, error) {
localEvaluationEndpoint := "api/feature_flag/local_evaluation?send_cohorts"
localEvaluationEndpoint := "api/feature_flag/local_evaluation"

url, err := url.Parse(poller.Endpoint + "/" + localEvaluationEndpoint + "")
if err != nil {
poller.Errorf("creating url - %s", err)
}
searchParams := url.Query()
searchParams.Add("token", poller.projectApiKey)
searchParams.Add("send_cohorts", "true")
url.RawQuery = searchParams.Encode()

return poller.request("GET", url, []byte{}, headers)
Expand Down

0 comments on commit 674f07a

Please sign in to comment.