php.net |  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: 2021-08-25 16:26 UTC
Votes:3
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: cmb (profile)
Status: Closed 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sbrl+php at stareamrainbowlabs dot com
New email:
PHP Version: OS:

 

 [2018-05-21 19:15 UTC] sbrl+php at stareamrainbowlabs dot com
Description:
------------
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:
---------------
N/A

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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-30 13:51 UTC] arnoutboks at gmail dot com
This issue has been resolved by https://github.com/php/php-src/pull/3274 and can probably be closed.
 [2021-08-25 16:26 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-08-25 16:26 UTC] cmb@php.net
> This issue has been resolved by
> https://github.com/php/php-src/pull/3274 and can probably be
> closed.

Indeed.  Available as of PHP 7.3.0.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 05:01:36 2025 UTC