summaryrefslogtreecommitdiff
path: root/lib/rubygems/vendored_net_http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/vendored_net_http.rb')
-rw-r--r--lib/rubygems/vendored_net_http.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rubygems/vendored_net_http.rb b/lib/rubygems/vendored_net_http.rb
new file mode 100644
index 0000000000..a84c52a947
--- /dev/null
+++ b/lib/rubygems/vendored_net_http.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+# Ruby 3.3 and RubyGems 3.5 is already load Gem::Timeout from lib/rubygems/net/http.rb
+# We should avoid to load it again
+require_relative "vendor/net-http/lib/net/http" unless defined?(Gem::Net::HTTP)