We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2ea9dc + 68444f4 commit c7f6d58Copy full SHA for c7f6d58
src/lib/contentstack.ts
@@ -6,6 +6,8 @@ import { Policy, StackConfig } from './types';
6
import { getHost } from './utils';
7
export * as Utils from '@contentstack/utils';
8
9
+let version = '{{VERSION}}';
10
+
11
/**
12
* @method stack
13
* @memberof Contentstack
@@ -71,6 +73,8 @@ export function stack(config: StackConfig): StackClass {
71
73
defaultConfig.headers['x-header-ea'] = config.early_access.join(',');
72
74
}
75
76
+ defaultConfig.headers['X-User-Agent'] = 'contentstack-delivery-typescript-{{PLATFORM}}/' + version;
77
78
// return new Stack(httpClient(defaultConfig), config);
79
const client = httpClient(defaultConfig as any);
80
0 commit comments