Skip to content

Commit 182ed75

Browse files
Bug/cs 40045 x user agent (#108)
* Updated X-User-Agent header * Updated the X-User-Agent
1 parent ae78d90 commit 182ed75

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Change log
22

3+
### Version: 3.18.0
4+
#### Date: January-15-2024
5+
##### New Features:
6+
- added taxonomy support
7+
- X-User-Agent updated
8+
- added region gcp_na
39
### Version: 3.17.2
410
#### Date: November-15-2023
511
##### Bug fix:

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22

33

4-
Copyright (c) 2016-2023 Contentstack
4+
Copyright (c) 2016-2024 Contentstack
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ You can use advanced sync queries to fetch custom results while performing initi
291291

292292
### The MIT License (MIT)
293293

294-
Copyright © 2012-2021 [Contentstack](https://www.contentstack.com). All Rights Reserved
294+
Copyright © 2012-2024 [Contentstack](https://www.contentstack.com). All Rights Reserved
295295

296296
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
297297

src/core/lib/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Request(stack, fetchOptions) {
3333

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

3838
if (requestParams.body && typeof requestParams.body === 'object') {
3939
delete requestParams.body._method;

0 commit comments

Comments
 (0)