Skip to content

Commit 53baaa9

Browse files
fix: revert User-Agent header again (#362)
1 parent 9ef8c37 commit 53baaa9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

flagsmith-core.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,6 @@ const Flagsmith = class {
829829
options.headers['Flagsmith-Application-Version'] = this.applicationMetadata.version;
830830
}
831831

832-
if (SDK_VERSION) {
833-
options.headers['Flagsmith-SDK-user-agent'] = `flagsmith-js-sdk/${SDK_VERSION}`
834-
}
835-
836832
if (headers) {
837833
Object.assign(options.headers, headers);
838834
}

test/init.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ describe('Flagsmith.init', () => {
292292
headers: expect.objectContaining({
293293
'Flagsmith-Application-Name': 'Test App',
294294
'Flagsmith-Application-Version': '1.2.3',
295-
'Flagsmith-SDK-user-agent': `flagsmith-js-sdk/${SDK_VERSION}`,
296295
}),
297296
}),
298297
);

0 commit comments

Comments
 (0)