Skip to content

Commit

Permalink
feat: add support for default variant eval (#309)
Browse files Browse the repository at this point in the history
* feat: add support for default variant eval

Signed-off-by: Mark Phelps <[email protected]>

* chore: add tests

Signed-off-by: Mark Phelps <[email protected]>

* chore: fix lint and test issues

Signed-off-by: Mark Phelps <[email protected]>

---------

Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps authored Jul 29, 2024
1 parent afd627e commit ad88594
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flipt-client-browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FliptEvaluationClient {

const headers = new Headers();
headers.append('Accept', 'application/json');
headers.append('x-flipt-accept-server-version', '1.38.0');
headers.append('x-flipt-accept-server-version', '1.47.0');

if (engine_opts.authentication) {
if ('client_token' in engine_opts.authentication) {
Expand Down
2 changes: 1 addition & 1 deletion flipt-engine-ffi/src/parser/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Parser for HTTPParser {
// version (or higher) that we can accept from the server
headers.insert(
"X-Flipt-Accept-Server-Version",
reqwest::header::HeaderValue::from_static("1.38.0"),
reqwest::header::HeaderValue::from_static("1.47.0"),
);

// add etag / if-none-match header if we have one
Expand Down
Loading

0 comments on commit ad88594

Please sign in to comment.