Commit a3bc18d8e78bc176c0d6bc987a0ab1f13bc5c885

Authored by Mario Mueller
1 parent 709bdd00
Exists in master and in 1 other branch production

Made the jira client switch ssl off if no https url is used

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/models/issue_trackers/jira_tracker.rb
@@ -60,7 +60,8 @@ if defined? JIRA @@ -60,7 +60,8 @@ if defined? JIRA
60 :password => password, 60 :password => password,
61 :site => base_url, 61 :site => base_url,
62 :context_path => context_path, 62 :context_path => context_path,
63 - :auth_type => :basic 63 + :auth_type => :basic,
  64 + :use_ssl => base_url.match(/^https/) ? true : false
64 } 65 }
65 client = JIRA::Client.new(options) 66 client = JIRA::Client.new(options)
66 67