Skip to content

Commit

Permalink
Use Rack.release instead of Rack::RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
schinery committed Oct 17, 2023
1 parent 608bd18 commit 3237433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/http/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3237433

Please sign in to comment.