Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2013-12-16 21:18:04 +0000
committerJoakim Erdfelt2013-12-16 21:18:04 +0000
commit2b0db585efafb84fa83cf4329a29f84dab7c03a9 (patch)
tree759b30488433780ab12358913ac04bd8cda95e83 /jetty-servlets
parentdd0f50fc7244b3ce3daa10cfe4f13f6e02c9d7e8 (diff)
downloadorg.eclipse.jetty.project-2b0db585efafb84fa83cf4329a29f84dab7c03a9.tar.gz
org.eclipse.jetty.project-2b0db585efafb84fa83cf4329a29f84dab7c03a9.tar.xz
org.eclipse.jetty.project-2b0db585efafb84fa83cf4329a29f84dab7c03a9.zip
424183 - Start does not find LIB (Classpath) when on non-English locale
+ Adding more Java Environment dump to --list-config + Fixing .toUpperCase() use to include Locale.ENGLISH
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/AsyncGzipFilter.java3
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/AsyncGzipFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/AsyncGzipFilter.java
index eb383e11cf..0f0d158d21 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/AsyncGzipFilter.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/AsyncGzipFilter.java
@@ -22,6 +22,7 @@ import java.io.File;
import java.io.IOException;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.regex.Pattern;
@@ -193,7 +194,7 @@ public class AsyncGzipFilter extends UserAgentFilter implements GzipFactory
{
StringTokenizer tok = new StringTokenizer(tmp,",",false);
while (tok.hasMoreTokens())
- _methods.add(tok.nextToken().trim().toUpperCase());
+ _methods.add(tok.nextToken().trim().toUpperCase(Locale.ENGLISH));
}
else
_methods.add(HttpMethod.GET.asString());
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
index f1c827f18e..137e76d930 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
@@ -194,7 +194,7 @@ public class GzipFilter extends UserAgentFilter
{
StringTokenizer tok = new StringTokenizer(tmp,",",false);
while (tok.hasMoreTokens())
- _methods.add(tok.nextToken().trim().toUpperCase());
+ _methods.add(tok.nextToken().trim().toUpperCase(Locale.ENGLISH));
}
else
_methods.add(HttpMethod.GET.asString());

Back to the top