This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 32e8b51030 Fix BZ 68378 - add mime type for mjs and others - aligning 
with httpd
32e8b51030 is described below

commit 32e8b51030684b96b40204361c188550bac3ab5c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jan 2 09:21:54 2024 +0000

    Fix BZ 68378 - add mime type for mjs and others - aligning with httpd
---
 conf/web.xml               | 12 ++++++++++++
 webapps/docs/changelog.xml |  7 +++++++
 2 files changed, 19 insertions(+)

diff --git a/conf/web.xml b/conf/web.xml
index 175c308c79..fc79046e3f 100644
--- a/conf/web.xml
+++ b/conf/web.xml
@@ -1750,6 +1750,10 @@
         <extension>ggb</extension>
         <mime-type>application/vnd.geogebra.file</mime-type>
     </mime-mapping>
+    <mime-mapping>
+        <extension>ggs</extension>
+        <mime-type>application/vnd.geogebra.slides</mime-type>
+    </mime-mapping>
     <mime-mapping>
         <extension>ggt</extension>
         <mime-type>application/vnd.geogebra.tool</mime-type>
@@ -2454,6 +2458,10 @@
         <extension>mjp2</extension>
         <mime-type>video/mj2</mime-type>
     </mime-mapping>
+    <mime-mapping>
+        <extension>mjs</extension>
+        <mime-type>text/javascript</mime-type>
+    </mime-mapping>
     <mime-mapping>
         <extension>mk3d</extension>
         <mime-type>video/x-matroska</mime-type>
@@ -2892,6 +2900,10 @@
         <extension>oprc</extension>
         <mime-type>application/vnd.palm</mime-type>
     </mime-mapping>
+    <mime-mapping>
+        <extension>opus</extension>
+        <mime-type>audio/ogg</mime-type>
+    </mime-mapping>
     <mime-mapping>
         <extension>org</extension>
         <mime-type>application/vnd.lotus-organizer</mime-type>
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 1fd8f931cb..3a97e225ab 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -112,6 +112,13 @@
         the default servlet via the init param
         <code>directoryRedirectStatusCode</code>. (funkman/markt)
       </add>
+      <update>
+        <bug>68378</bug>: Align extension to MIME type mappings in the global
+        web.xml with those in httpd by adding
+        <code>application/vnd.geogebra.slides</code> for <code>ggs</code>,
+        <code>text/javascript</code> for <code>mjs</code> and
+        <code>audio/ogg</code> for opus. (markt)
+      </update>
     </changelog>
   </subsection>
   <subsection name="Coyote">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to