apinow-sdk 0.11.5 → 0.11.7
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/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -127,7 +127,12 @@ class ApiNow {
|
|
|
127
127
|
console.error(`txResponse: Preparing ${method} request to ${endpoint}`);
|
|
128
128
|
const fetchOptions = {
|
|
129
129
|
method: method,
|
|
130
|
-
headers: {
|
|
130
|
+
headers: {
|
|
131
|
+
'Content-Type': 'application/json',
|
|
132
|
+
'Accept': '*/*',
|
|
133
|
+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
|
|
134
|
+
'X-Transaction-Hash': txHash
|
|
135
|
+
},
|
|
131
136
|
// body is set conditionally below
|
|
132
137
|
};
|
|
133
138
|
if (method === 'GET' || method === 'HEAD') {
|