Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/net_http_patch.rb')
-rw-r--r--config/initializers/net_http_patch.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/net_http_patch.rb b/config/initializers/net_http_patch.rb
index 4f851d5ee6d..8231423e1a5 100644
--- a/config/initializers/net_http_patch.rb
+++ b/config/initializers/net_http_patch.rb
@@ -6,9 +6,11 @@
# See Ruby-lang issue https://bugs.ruby-lang.org/issues/17542
# See issue on GitLab https://gitlab.com/gitlab-org/gitlab/-/issues/289836
+require 'net/http'
+
# This file can be removed once Ruby 3.0 is no longer supported:
# https://gitlab.com/gitlab-org/gitlab/-/issues/396223
-return if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new(3.1)
+return if Gem::Version.new(Net::HTTP::VERSION) >= Gem::Version.new('0.2.0')
module Net
class HTTP < Protocol