Check if there are any content to the credential object
This commit is contained in:
Ben Hardill
2021-07-15 17:35:03 +01:00
parent 66a704af55
commit 972c83cd52

View File

@@ -205,7 +205,7 @@ module.exports = function(RED) {
}
}
}
if (this.credentials) {
if (Object.keys(this.credentials).length != 0) {
if (this.authType === "basic") {
// Workaround for https://github.com/sindresorhus/got/issues/1169
var cred = ""