-
Notifications
You must be signed in to change notification settings - Fork 317
feat(serveStatic): support default and custom mimes #1137
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
+131
−2
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
75622e7
feat(static): add default MIME types for serveStatic utility
outslept 1af69a3
chore: moved COMMON_MIME_TYPES to internal/types
outslept 1669350
chore: not using default MIME value fallback
outslept e7d929e
chore: handling false positive
outslept 2c8626a
chore: as fallback was removed previously this is not needed
outslept ebf4cb3
chore: oopsie haven't covered new lines
outslept a7024ee
chore: moved and refactored getMimeType, adapted tests
outslept 0b87195
small refactors
pi0 b30a01f
rename to type
pi0 741eb15
reorder cb args + better test
pi0 bdf7f6f
refactor: remove path from cb for now due to uncertainty of usage
pi0 46df78d
update tests
pi0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.