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

Remove :all symbol from Mime::ALL #35775

Merged

Conversation

jhawthorn
Copy link
Member

Mime[:all] doesn't work, and .all isn't a valid file extension (we wouldn't want a file named welcome.all.erb, and that wouldn't make sense), so it definitely shouldn't be used as the #symbol for Mime::ALL.

This also makes Mime::ALL better match how */* is parsed from an Accept header (also without a symbol).

This fixes the issue reported by @Edouard-chin in #35661 (comment)

.all isn't a valid file extension, so it shouldn't used as a symbol.
This also makes Mime::ALL better match how */* is parsed from an Accept
header.
@rails-bot rails-bot bot added the actionpack label Mar 27, 2019
jhawthorn referenced this pull request Mar 28, 2019
This is a developer quality of life improvement, to ensure that unknown
formats aren't assigned (which it would previously accept, but wouldn't
work 100% correctly due to caching).
@rafaelfranca rafaelfranca merged commit 5f043c0 into rails:master Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants