[Libwebsockets] consider adding ".mjs" to server_mimetypes

Per Bothner per at bothner.com
Sun Apr 11 16:09:51 CEST 2021


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.)
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/


More information about the Libwebsockets mailing list