From a3bc18d8e78bc176c0d6bc987a0ab1f13bc5c885 Mon Sep 17 00:00:00 2001 From: Mario Mueller Date: Tue, 20 Aug 2013 08:13:52 +0200 Subject: [PATCH] Made the jira client switch ssl off if no https url is used --- app/models/issue_trackers/jira_tracker.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/issue_trackers/jira_tracker.rb b/app/models/issue_trackers/jira_tracker.rb index 57a4d25..2c9f68a 100644 --- a/app/models/issue_trackers/jira_tracker.rb +++ b/app/models/issue_trackers/jira_tracker.rb @@ -60,7 +60,8 @@ if defined? JIRA :password => password, :site => base_url, :context_path => context_path, - :auth_type => :basic + :auth_type => :basic, + :use_ssl => base_url.match(/^https/) ? true : false } client = JIRA::Client.new(options) -- libgit2 0.21.2