1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
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
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7

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 = ""