diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index 87152fe11..bbc8b411c 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -169,7 +169,7 @@ module.exports = function(RED) { opts.headers[v.toLowerCase()] = msg.headers[v]; } } - if (this.credentials.user) { + if (this.credentials && this.credentials.user) { opts.auth = this.credentials.user+":"+(this.credentials.password||""); } var payload = null;