-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Suggestion: mime-type verification method #220
Comments
What about sending a PR about this? |
I made benchmark of mime-type verification. https://github.com/39hn/mime-type-check-benchmark
gonna make PR with String.prototype.includes :D |
39hn
added a commit
to 39hn/nestia
that referenced
this issue
Jan 18, 2023
use `String.prototype.includes` to verify MIME type to be `application/json`
39hn
added a commit
to 39hn/nestia
that referenced
this issue
Jan 18, 2023
Close samchon#220 use `String.prototype.includes` to verify MIME type to be `application/json`
samchon
added a commit
that referenced
this issue
Jan 18, 2023
Close #220 - use Express' `req.is` to verify MIME type to be `application/json`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A description of the problem you're trying to solve.
Express has it's own method for checking mime-type (Request.is), but Nestia has implemented a duplicative method.
An overview of the suggested solution.
Benchmark between Split-Some and String.prototype.includes
The text was updated successfully, but these errors were encountered: