n8n-nodes-tenable 1.0.1 → 1.0.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.
|
@@ -17,7 +17,8 @@ async function tenableApiRequest(method, endpoint, body = {}, qs = {}) {
|
|
|
17
17
|
body,
|
|
18
18
|
json: true,
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
// Only remove body for GET requests - POST/PUT requests may need empty body
|
|
21
|
+
if (Object.keys(body).length === 0 && method === 'GET') {
|
|
21
22
|
delete options.body;
|
|
22
23
|
}
|
|
23
24
|
if (Object.keys(qs).length === 0) {
|