summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-11 11:55:57 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-12 14:04:02 -0700
commit0332a3942ab68fc88f15426721c150d7d94c61c9 (patch)
tree63224480edd42166db7bbf766ae677d7cb898acc
parent798cac61accc035b51aaac25160bf1d5e9715252 (diff)
downloadchef-https.tar.gz
Use net/http and openssl instead of net/httpshttps
net/https just calls openssl and net/http. We can just do that ourselves and avoid the extra layer Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/http.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb
index bf5361d4b5..650ee73bb7 100644
--- a/lib/chef/http.rb
+++ b/lib/chef/http.rb
@@ -22,7 +22,8 @@
#
require "tempfile" unless defined?(Tempfile)
-require "net/https"
+require "openssl" unless defined?(OpenSSL)
+require "net/http" unless defined?(Net::HTTP)
require "uri" unless defined?(URI)
require_relative "http/basic_client"
require_relative "monkey_patches/net_http"