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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 23 09:03:33 2021 UTC