Standard rb

This commit is contained in:
2023-12-21 19:44:15 +11:00
parent 6a0adf1f81
commit 05aa2bf1fd
4 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ require "rack/contrib"
module Adamantium
module Middleware
class HeaderFix
HEADERS_KLASS = Rack.release < "3" ? Rack::Utils::HeaderHash : Rack::Headers
HEADERS_KLASS = (Rack.release < "3") ? Rack::Utils::HeaderHash : Rack::Headers
private_constant :HEADERS_KLASS
def initialize(app, &block)
@@ -21,4 +21,4 @@ module Adamantium
end
end
end
end
end