Skip to content

Commit

Permalink
feat: add local evaluation library header (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen authored Sep 9, 2022
1 parent 3ac1c4f commit 098b1b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/src/local/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { version as PACKAGE_VERSION } from '../../gen/version';
import { LocalEvaluationDefaults } from '../types/config';
import { FlagConfig } from '../types/flag';
import { HttpClient } from '../types/transport';
Expand Down Expand Up @@ -36,6 +37,7 @@ export class FlagConfigFetcher {
const endpoint = `${this.serverUrl}/sdk/rules?eval_mode=local`;
const headers = {
Authorization: `Api-Key ${this.apiKey}`,
'X-Amp-Exp-Library': `experiment-node-server/${PACKAGE_VERSION}`,
};
const body = null;
this.logger.debug('[Experiment] Get flag configs');
Expand Down

0 comments on commit 098b1b8

Please sign in to comment.