@itentialopensource/adapter-utils 4.45.1 → 4.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/connectorRest.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## 4.45.2 [12-09-2021]
|
|
3
|
+
|
|
4
|
+
* change for sending content-length with empty token body
|
|
5
|
+
|
|
6
|
+
Closes ADAPT-1889
|
|
7
|
+
|
|
8
|
+
See merge request itentialopensource/adapter-utils!228
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
2
12
|
## 4.45.1 [12-08-2021]
|
|
3
13
|
|
|
4
14
|
* Modified response handling on error to use the translator
|
package/lib/connectorRest.js
CHANGED
|
@@ -1931,7 +1931,7 @@ function buildTokenRequest(reqPath, reqBody, callProperties, callback) {
|
|
|
1931
1931
|
|
|
1932
1932
|
// if there is a body, set the content length of the body and add it to
|
|
1933
1933
|
// the header
|
|
1934
|
-
if (Object.keys(tokenEntity).length > 0) {
|
|
1934
|
+
if (Object.keys(tokenEntity).length > 0 || tokenSchema.sendEmpty) {
|
|
1935
1935
|
options.headers['Content-length'] = Buffer.byteLength(bodyString);
|
|
1936
1936
|
}
|
|
1937
1937
|
|