hi,

as discussed for httpd in https://marc.info/?t=171619769100001&r=1&w=2
(but apparently didnt get commited ?), same thing for nginx.

i have it locally in the nextcould vhost but ...

discussed upstream in https://trac.nginx.org/nginx/ticket/2216 but
apparently that hasn't been commited (neither in freenginx)

note that im not entering the heated 'text/javascript' vs
'application/javascript' discussions from
https://trac.nginx.org/nginx/ticket/1407 /
https://mailman.nginx.org/pipermail/nginx-devel/2022-May/7PN54GRH2S4ESBBTUTGZDXEKPEZGCWOJ.html

i'd trust the commitees but.. *shrug*

https://developer.mozilla.org/en-US/docs/Learn/Server-side/Configuring_server_MIME_types

Landry
? nginx-1.18.0.diff
? nginx-mjs.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
diff -u -r1.179 Makefile
--- Makefile    30 May 2024 12:41:00 -0000      1.179
+++ Makefile    2 Jun 2024 08:51:26 -0000
@@ -21,6 +21,7 @@
 VERSION=       1.26.1
 DISTNAME=      nginx-${VERSION}
 CATEGORIES=    www
+REVISION-main= 0
 
 VERSION-njs=   0.8.2
 VERSION-rtmp=  1.2.1
Index: patches/patch-conf_mime_types
===================================================================
RCS file: /cvs/ports/www/nginx/patches/patch-conf_mime_types,v
diff -u -r1.6 patch-conf_mime_types
--- patches/patch-conf_mime_types       30 May 2022 08:17:35 -0000      1.6
+++ patches/patch-conf_mime_types       2 Jun 2024 08:51:26 -0000
@@ -1,7 +1,17 @@
+chunk 1: https://trac.nginx.org/nginx/ticket/2216
+
 Index: conf/mime.types
 --- conf/mime.types.orig
 +++ conf/mime.types
-@@ -58,6 +58,7 @@ types {
+@@ -3,6 +3,7 @@ types {
+     text/html                                        html htm shtml;
+     text/css                                         css;
+     text/xml                                         xml;
++    text/javascript                                  mjs;
+     image/gif                                        gif;
+     image/jpeg                                       jpeg jpg;
+     application/javascript                           js;
+@@ -58,6 +59,7 @@ types {
      application/x-java-archive-diff                  jardiff;
      application/x-java-jnlp-file                     jnlp;
      application/x-makeself                           run;
@@ -9,7 +19,7 @@
      application/x-perl                               pl pm;
      application/x-pilot                              prc pdb;
      application/x-rar-compressed                     rar;
-@@ -78,6 +79,7 @@ types {
+@@ -78,6 +80,7 @@ types {
      application/octet-stream                         iso img;
      application/octet-stream                         msi msp msm;
  
@@ -17,7 +27,7 @@
      audio/midi                                       mid midi kar;
      audio/mpeg                                       mp3;
      audio/ogg                                        ogg;
-@@ -92,6 +94,7 @@ types {
+@@ -92,6 +95,7 @@ types {
      video/webm                                       webm;
      video/x-flv                                      flv;
      video/x-m4v                                      m4v;

Reply via email to