[Libwebsockets] consider adding ".mjs" to server_mimetypes

Andy Green andy at warmcat.com
Mon Apr 12 07:40:52 CEST 2021



On 4/11/21 3:09 PM, Per Bothner wrote:
> https://v8.dev/features/modules#mjs recommends using the "mjs" extension 
> for EcmaScript modules.
> That would mean adding
>         { ".mjs", "text/javascript" },
> to server_mimetypes in lib/roles/http/server/server.c.
> 
> Not a priority, since using extra_mimetypes works fine.
> (I'm trying out a library that does use .mjs.)

It sounds fairly fundamental... I pushed a patch for it on main.

-Andy


More information about the Libwebsockets mailing list