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

Ensure javascript files get the correct mimetype #78

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented Jun 15, 2022

On Windows, the mimetypes are obtained from the registry. However,
the mimetype for javascript files is broken. Add some code to ensure
that javascript files are identified correctly.

This also adds some infrastructure for adding extra mimetypes that
persist even if mimetypes.init() is called.

This fixes the issue that I was encountering on Windows.

On Windows, the mimetypes are obtained from the registry. However,
the mimetype for javascript files is broken. Add some code to ensure
that javascript files are identified correctly.

This also adds some infrastructure for adding extra mimetypes that
persist even if `mimetypes.init()` is called.

Signed-off-by: Patrick Avery <[email protected]>
@jourdain jourdain merged commit 62b9e90 into master Jun 15, 2022
@jourdain jourdain deleted the javascript-mimetypes branch June 15, 2022 13:47
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.

2 participants