Skip to content

Commit 2f5d245

Browse files
authored
Merge pull request #282 from patrick204nqh/patrick/fix-rack-version-method
Fix Rack 3.x compatibility - Replace `Rack.version` with `Rack.release`
2 parents 8added2 + dcac416 commit 2f5d245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webmachine/adapters/rack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Rack < Adapter
4141
DEFAULT_OPTIONS = {}
4242

4343
REQUEST_URI = 'REQUEST_URI'.freeze
44-
VERSION_STRING = "#{Webmachine::SERVER_STRING} Rack/#{::Rack.version}".freeze
44+
VERSION_STRING = "#{Webmachine::SERVER_STRING} Rack/#{::Rack.release}".freeze
4545
NEWLINE = "\n".freeze
4646

4747
# Start the Rack adapter

0 commit comments

Comments
 (0)