Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of deprecated Rack::File in Rack 3.0 #896

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

jamesds
Copy link
Contributor

@jamesds jamesds commented Oct 11, 2023

Just a quick change to replace usage of Rack::File with Rack::Files, since this has been deprecated in Rack 3.0 and will be removed in Rack 3.1 (see https://github.com/rack/rack/blob/3-0-stable/lib/rack/file.rb).

Kept backward compatibility with older Rack versions by checking for the existence of Rack::Files before instantiating it, falling back to Rack::File.

@mathieujobin mathieujobin merged commit 7ab87c3 into Apipie:master Oct 11, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants