Skip to content

Commit

Permalink
(CAT-2007) Remove VERIFY_PEER skip on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Sep 17, 2024
1 parent afeb5aa commit 7a049aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/pdk/util/vendored_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def download_file
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
# TODO: Get rid of this
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if Gem.win_platform?
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)

Expand Down
1 change: 0 additions & 1 deletion spec/unit/pdk/util/vendored_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
allow(Net::HTTP::Get).to receive(:new).with(anything).and_return(mock_request)
allow(Net::HTTP).to receive(:new).with(any_args).and_return(mock_http)
allow(mock_http).to receive(:use_ssl=).with(anything)
allow(mock_http).to receive(:verify_mode=).with(anything)
end

let(:download_error) { described_class::DownloadError }
Expand Down

0 comments on commit 7a049aa

Please sign in to comment.