Skip to content

Commit

Permalink
Use Protocol::Rack::Adapter.parse_file for compatibility with older…
Browse files Browse the repository at this point in the history
… Rack versions.
  • Loading branch information
ioquatix committed Apr 3, 2024
1 parent 9fcd821 commit c38d93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion falcon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ Gem::Specification.new do |spec|
spec.add_dependency "localhost", "~> 1.1"
spec.add_dependency "openssl", "~> 3.0"
spec.add_dependency "process-metrics", "~> 0.2.0"
spec.add_dependency "protocol-rack", "~> 0.1"
spec.add_dependency "protocol-rack", "~> 0.5"
spec.add_dependency "samovar", "~> 2.3"
end
2 changes: 1 addition & 1 deletion lib/falcon/environment/rackup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def rackup_path
end

def rack_app
::Rack::Builder.parse_file(rackup_path)
::Protocol::Rack::Adapter.parse_file(rackup_path)
end

def middleware
Expand Down

0 comments on commit c38d93e

Please sign in to comment.