From 56bad50c7e9fdda8fbd9635fa7d8fae9916251d3 Mon Sep 17 00:00:00 2001 From: Steven Tran Date: Tue, 19 May 2015 14:58:34 -0600 Subject: [PATCH] Allow anonymous request --- lib/jira.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jira.js b/lib/jira.js index e919d9da..1ce9c76e 100644 --- a/lib/jira.js +++ b/lib/jira.js @@ -179,7 +179,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor token: oauth.access_token, token_secret: oauth.access_token_secret }; - } else { + } else if(this.username && this.password) { options.auth = { 'user': this.username, 'pass': this.password