Skip to content

Conversation

outslept
Copy link
Contributor

@outslept outslept commented Jul 1, 2025

Taken the types from https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types (excluding not so used like ms office related)

Closes #1136

@outslept outslept requested a review from pi0 as a code owner July 1, 2025 16:06
@outslept
Copy link
Contributor Author

outslept commented Jul 1, 2025

Everything should be addressed now 👀

@outslept outslept requested a review from pi0 July 1, 2025 16:34
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

Attention: Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/utils/internal/mime.ts 94.28% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@outslept outslept requested a review from pi0 July 1, 2025 18:08
@pi0 pi0 changed the title feat(static): add default MIME types for serveStatic utility feat(serveStatic): support default and custom mimes Jul 2, 2025
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

@pi0 pi0 merged commit 50aeec0 into h3js:main Jul 2, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

support default and custom mimes for serveStatic

2 participants