Skip to content

Commit

Permalink
Merge pull request #10 from tagliala/chore/refactor-http-client
Browse files Browse the repository at this point in the history
Refactor HTTP Client
  • Loading branch information
tagliala committed Sep 7, 2020
2 parents 86e17ee + c9ae841 commit 004dcb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## master / unreleased

* [ENHANCEMENT] Refactor HTTP client [#10](https://github.com/tagliala/coveralls-ruby-reborn/pull/10)

## 0.17.0 / 2020-08-26

* [FEATURE] Add SimpleCov 0.19.0 compatibility
Expand Down
10 changes: 1 addition & 9 deletions lib/coveralls/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,7 @@ def endpoint_to_uri(endpoint)

def build_client(uri)
client = Net::HTTP.new(uri.host, uri.port)
client.use_ssl = true if uri.port == 443
client.verify_mode = OpenSSL::SSL::VERIFY_NONE

unless client.respond_to?(:ssl_version=)
Net::HTTP.ssl_context_accessor('ssl_version')
end

client.ssl_version = 'SSLv23'

client.use_ssl = uri.port == 443
client
end

Expand Down

0 comments on commit 004dcb6

Please sign in to comment.