-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix served_url printed when using Puma & Rack 3
This `#use_puma?` check was [introduced][1] because Rails could potentially display the wrong server URL in development if another host or port is configured in `config/puma.rb`. However, in Rack 3 the the name of the server class changed from `Rack::Handler::Puma` to `Rackup::Handler::Puma`, which means that the served_url is being logged again. This commit fixes the check to accept either version of the class. Additionally, puma was updated in Gemfile.lock because Puma 6.0.x prints a deprecation warning about Rack::Handler that's fixed in 6.1.0. [1]: 29648ff
- Loading branch information
1 parent
1e824aa
commit 2d61a20
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters