summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/java/net/URLConnection.java
diff options
context:
space:
mode:
Diffstat (limited to 'luni/src/main/java/java/net/URLConnection.java')
-rw-r--r--luni/src/main/java/java/net/URLConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/luni/src/main/java/java/net/URLConnection.java b/luni/src/main/java/java/net/URLConnection.java
index 18f008b..b915fb8 100644
--- a/luni/src/main/java/java/net/URLConnection.java
+++ b/luni/src/main/java/java/net/URLConnection.java
@@ -24,6 +24,7 @@ import java.util.Collections;
import java.util.Date;
import java.util.Hashtable;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.StringTokenizer;
@@ -774,7 +775,7 @@ public abstract class URLConnection {
}
// Check text types
- String textHeader = header.trim().toUpperCase();
+ String textHeader = header.trim().toUpperCase(Locale.US);
if (textHeader.startsWith("<!DOCTYPE HTML") ||
textHeader.startsWith("<HTML") ||
textHeader.startsWith("<HEAD") ||