Commit 3ec3956f31040d780633bd7af76f6b66ab90fde8
Exists in
master
and in
1 other branch
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 | 60 | :password => password, |
61 | 61 | :site => base_url, |
62 | 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 | 66 | client = JIRA::Client.new(options) |
66 | 67 | ... | ... |