🐛 Fix rejectUnauthorized setting on Hive Node

This commit is contained in:
Iñaki Breinbauer 2022-02-26 11:35:43 +01:00 committed by GitHub
parent 7bd8f9f56a
commit 2f79197700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ export async function theHiveApiRequest(this: IHookFunctions | IExecuteFunctions
qs: query,
uri: uri || `${credentials.url}/api${resource}`,
body,
rejectUnauthorized: credentials.allowUnauthorizedCerts as boolean,
rejectUnauthorized: !credentials.allowUnauthorizedCerts as boolean,
json: true,
};