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

MIME registry is coming to Crystal's stdlib #11

Closed
straight-shoota opened this issue Nov 13, 2018 · 0 comments
Closed

MIME registry is coming to Crystal's stdlib #11

straight-shoota opened this issue Nov 13, 2018 · 0 comments

Comments

@straight-shoota
Copy link

I want to give a heads up: MIME database API has been merged into Crystal's standard library and will probably be included in the next release. See crystal-lang/crystal#5765 for details.

I guess this could make this shard mostly obsolete, typical use cases should be covered by the stdlib implementation.
There are some differences: it doesn't read a JSON file but the mime.types format (which commonly used by MIME applications). And it doesn't ship with a copy of this database by default, relying on a list provided by the operating system.
These differences are IMO not very relevant. It's quite trivial to switch to mime.types format (this is the de-facto standard anyway) and bake the file into the binary (if required).

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

No branches or pull requests

1 participant