Skip to content

Commit

Permalink
HTTP In node: Check credentials exist before using
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jul 22, 2014
1 parent 0b308de commit bead24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/core/io/21-httpin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bead24e

Please sign in to comment.