Skip to content

Commit

Permalink
Updated the X-User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
sunil-lakshman committed Jan 8, 2024
1 parent 99943e9 commit e106190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Request(stack, fetchOptions) {

// setting headers
requestParams.headers['Content-Type'] = 'application/json; charset=UTF-8';
requestParams.headers['X-User-Agent'] = 'contentstack-delivery-js-{{PLATFORM}}/' + version;
requestParams.headers['X-User-Agent'] = 'contentstack-delivery-javascript-{{PLATFORM}}/' + version;

if (requestParams.body && typeof requestParams.body === 'object') {
delete requestParams.body._method;
Expand Down

0 comments on commit e106190

Please sign in to comment.