|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76363 Add support for *.jsm
Submitted: 2018-05-21 19:15 UTC Modified: -
Avg. Score:1.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: sbrl+php at stareamrainbowlabs dot com Assigned:
Status: Open Package: Built-in web server
PHP Version: 7.2.5 OS: Ubuntu 17.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 + 49 = ?
Subscribe to this entry?

 [2018-05-21 19:15 UTC] sbrl+php at stareamrainbowlabs dot com
With the advent of ES6 modules, the .jsm file extension is increasingly been used for ES6 module files.

I propose that support be added for this extension to the inbuilt development web server such that `*.jsm` files return `application/javascript`.

Test script:

Expected result:
*.jsm files return a content-type of "application/javascript".

Actual result:
*.jsm files return a content-type of "application/octet-stream".


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-30 13:51 UTC] arnoutboks at gmail dot com
This issue has been resolved by and can probably be closed.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 17:01:23 2021 UTC