Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add jsm and mjs extensions to application/javascript media type associations #9483

Closed
jmooring opened this issue Feb 10, 2022 · 1 comment · Fixed by #9484
Closed

Add jsm and mjs extensions to application/javascript media type associations #9483

jmooring opened this issue Feb 10, 2022 · 1 comment · Fixed by #9484

Comments

@jmooring
Copy link
Member

Reference: https://discourse.gohugo.io/t/37084

Hugo does not currently associate the .jsm or .mjs extensions with the application/javascript media type.

When using resources.GetRemote, our content/extension validation is system-dependent, where the local MIME database is loaded and read.

For example, on the OP's system, and on mine:

$ cat /usr/share/mime/globs2 | grep javascript

50:application/javascript:*.jsm
50:application/javascript:*.mjs
50:application/javascript:*.js

Hugo ends up with the first one on the list.

jmooring added a commit to jmooring/hugo that referenced this issue Feb 10, 2022
@bep bep closed this as completed in #9484 Feb 10, 2022
bep pushed a commit that referenced this issue Feb 10, 2022
Add jsm and mjs extensions.
Closes #9483
@bep bep added this to the v0.92.2 milestone Feb 10, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants