Commit 3ec3956f31040d780633bd7af76f6b66ab90fde8

Authored by Cyril Mougel
2 parents 709bdd00 a3bc18d8
Exists in master and in 1 other branch production

Merge pull request #550 from xenji/bugfix-529

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