Skip to content

Commit

Permalink
Merge pull request #236 from ualbertalib/pgj/234_authenticate_ssl
Browse files Browse the repository at this point in the history
Fix authentication bug when using ssl
  • Loading branch information
pgwillia authored Nov 22, 2021
2 parents 5ad8c65 + 8e9b23b commit 2e4f5fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and releases in PushmiPullyu adheres to [Semantic Versioning](https://semver.org

## [Unreleased]

- Fix authentication bug when using ssl
- bump rubocop and rubocop-rspec

## [2.0.1] - 2021-02-02
Expand Down
1 change: 1 addition & 0 deletions lib/pushmi_pullyu/aip/downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def compare_md5(local, remote_checksum)
def authenticate_http_calls
@uri = URI.parse(PushmiPullyu.options[:jupiter][:jupiter_url])
@http = Net::HTTP.new(@uri.host, @uri.port)
@http.use_ssl = true if @uri.instance_of? URI::HTTPS
request = Net::HTTP::Post.new("#{@uri.request_uri}auth/system")
request.set_form_data(
email: PushmiPullyu.options[:jupiter][:user],
Expand Down

0 comments on commit 2e4f5fa

Please sign in to comment.