From 41f7df18a663367c3dc05879ff061acb685dac6b Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 4 Mar 2013 16:52:49 +1100 Subject: [PATCH] 402185 updated javascript mime-type --- .../src/main/resources/org/eclipse/jetty/http/mime.properties | 2 +- .../eclipse/jetty/servlets/IncludableGzipFilterMinSizeTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-http/src/main/resources/org/eclipse/jetty/http/mime.properties b/jetty-http/src/main/resources/org/eclipse/jetty/http/mime.properties index 74601e30851..3eb4dda5a64 100644 --- a/jetty-http/src/main/resources/org/eclipse/jetty/http/mime.properties +++ b/jetty-http/src/main/resources/org/eclipse/jetty/http/mime.properties @@ -52,7 +52,7 @@ jnlp=application/x-java-jnlp-file jpe=image/jpeg jpeg=image/jpeg jpg=image/jpeg -js=application/x-javascript +js=application/javascript jsp=text/html kar=audio/midi latex=application/x-latex diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludableGzipFilterMinSizeTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludableGzipFilterMinSizeTest.java index a899d1a4d11..948be459d6c 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludableGzipFilterMinSizeTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludableGzipFilterMinSizeTest.java @@ -99,7 +99,7 @@ public class IncludableGzipFilterMinSizeTest tester.setGzipFilterClass(IncludableGzipFilter.class); FilterHolder holder = tester.setContentServlet(testServlet); - holder.setInitParameter("mimeTypes","application/soap+xml,text/javascript,application/x-javascript"); + holder.setInitParameter("mimeTypes","application/soap+xml,text/javascript,application/javascript"); holder.setInitParameter("minGzipSize", "2048"); holder.setInitParameter("uncheckedPrintWriter","true");