-
Notifications
You must be signed in to change notification settings - Fork 125
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 lookup for application/json returns false #32
Comments
You're encountering a bug in
|
This is the bug: broofa/mime#113 |
And this module fixed the bug (which is one of the purposes of this module: incorporate bug fixes that |
I updated the blurb in the README to note that there are bug fixes to the |
Thank you for clarifying, I misunderstood the use case for the lookup function initially. |
Passing "application/json" to the
mime.lookup
returns false. I am assuming this is a bug and that passing a valid mime-type tomime.lookup
should return that same mime-type. Also, the README says this behaves similarly to the mime module which handles this type the way I would expect. Examples below.Using
mime-types
Using
mime
If this is the intended behavior, then it should probably be mentioned as a difference between this and the
mime
package (along with the other differences called out) in the README.Happy to help out with a PR if this is indeed a bug and not the intended behavior
The text was updated successfully, but these errors were encountered: