Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates the Hanami::Action::MIME_TYPES constant (#191)
We will use this (hugely) trimmed version of Rack::Mime::MIME_TYPES That should result in faster format resolution and less weird bugs (see issue #663). - Mime#format_to_mime solves while looking at Action::Mime: It's needed so the UnknownFormatError exception is raised when set to a format we don't map by default. - Documentation: Fix references to Rack::Mime under PERFORMANCE in mime.rb - Dry::Validation removed format? from HINTS, resulting in it's error message not appearing when the value is not filled - Reordering of the MIME_TYPES hash for faster lookups.
- Loading branch information
Showing
4 changed files
with
75 additions
and
26 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
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