Skip to content

Commit

Permalink
Updated X-User-Agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
sunil-lakshman committed Jan 8, 2024
1 parent 05180fc commit 99943e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Change log

### Version: 3.18.0
#### Date: January-15-2024
##### New Features:
- added taxonomy support
- X-User-Agent updated
- added region gcp_na
### Version: 3.17.2
#### Date: November-15-2023
##### Bug fix:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)


Copyright (c) 2016-2023 Contentstack
Copyright (c) 2016-2024 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ You can use advanced sync queries to fetch custom results while performing initi

### The MIT License (MIT)

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

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:

Expand Down
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-{{PLATFORM}}/' + version;
requestParams.headers['X-User-Agent'] = 'contentstack-delivery-js-{{PLATFORM}}/' + version;

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

0 comments on commit 99943e9

Please sign in to comment.