Turkish locale toLowerCase I problem fix (causing not loading main window because of icon names conversion, etc.)

This commit is contained in:
Jindra Petřík
2018-04-01 16:26:32 +02:00
parent 5717035254
commit c2f729b3bf
14 changed files with 69 additions and 57 deletions

View File

@@ -20,6 +20,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
*
@@ -93,9 +94,9 @@ public class HttpResponseInfo {
for (String h : headers) {
if (h.contains(":")) {
String[] keyval = h.split(":");
String key = keyval[0].trim().toLowerCase();
String key = keyval[0].trim().toLowerCase(Locale.ENGLISH);
String val = keyval[1].trim();
if (header.toLowerCase().equals(key)) {
if (header.toLowerCase(Locale.ENGLISH).equals(key)) {
return val;
}
}