From d4322bdafe1eea43eb12a12eaa8e5b8b3faba26f Mon Sep 17 00:00:00 2001 From: Nir Cohen Date: Sun, 14 Feb 2016 12:42:49 +0200 Subject: [PATCH] change request to doRequest to allow authentication in requests --- lib/jira.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jira.js b/lib/jira.js index 190e2661..9c1bbdf9 100644 --- a/lib/jira.js +++ b/lib/jira.js @@ -1860,7 +1860,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor body: webhook }; - this.request(options, function(error, response, body) { + this.doRequest(options, function(error, response, body) { if (error) { callback(error, null); @@ -1910,7 +1910,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor json: true }; - this.request(options, function(error, response, body) { + this.doRequest(options, function(error, response, body) { if (error) { callback(error, null); @@ -1946,7 +1946,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor json: true }; - this.request(options, function(error, response, body) { + this.doRequest(options, function(error, response, body) { if (error) { callback(error, null); @@ -1982,7 +1982,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor json: true }; - this.request(options, function(error, response, body) { + this.doRequest(options, function(error, response, body) { if (error) { callback(error, null);