mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 15:57:55 +00:00
Turkish locale toLowerCase I problem fix (causing not loading main window because of icon names conversion, etc.)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user