From 3237433b2b94eed0e6ada3c77b1c0357d2d8a2d4 Mon Sep 17 00:00:00 2001 From: Stuart Chinery Date: Tue, 17 Oct 2023 09:42:54 +0100 Subject: [PATCH] Use Rack.release instead of Rack::RELEASE --- lib/grape/http/headers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grape/http/headers.rb b/lib/grape/http/headers.rb index 96a5e4aaf3..314334b0ae 100644 --- a/lib/grape/http/headers.rb +++ b/lib/grape/http/headers.rb @@ -11,7 +11,7 @@ module Headers REQUEST_METHOD = 'REQUEST_METHOD' QUERY_STRING = 'QUERY_STRING' - if Gem::Version.new(Rack::RELEASE) < Gem::Version.new('3') + if Gem::Version.new(Rack.release) < Gem::Version.new('3') CONTENT_TYPE = 'Content-Type' X_CASCADE = 'X-Cascade' else