diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-11 11:55:57 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-17 21:39:02 -0700 |
commit | 2b983143a4994dacb0359a13a3e79b109b395e42 (patch) | |
tree | 18d13b398317b7c44579dd321c4208cdd4b38a34 | |
parent | 072ede7e1a8ae249d374be6bf66a3c2a24d3397f (diff) | |
download | chef-2b983143a4994dacb0359a13a3e79b109b395e42.tar.gz |
Use net/http and openssl instead of net/https
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.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index 80db24fa3b..f3b0825f8d 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" |