|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sbrl+php at stareamrainbowlabs dot com
New email:
PHP Version: OS:


 [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