1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

make sure locale independent data is not upper/lowercased incorrectly. See #315

This commit is contained in:
John J. Aylward 2017-02-10 10:07:28 -05:00
parent 5ff8b4cb08
commit eb806f4c14
2 changed files with 4 additions and 3 deletions

View file

@ -25,6 +25,7 @@ SOFTWARE.
*/
import java.util.Iterator;
import java.util.Locale;
/**
* Convert an HTTP header to a JSONObject and back.
@ -74,7 +75,7 @@ public class HTTP {
String token;
token = x.nextToken();
if (token.toUpperCase().startsWith("HTTP")) {
if (token.toUpperCase(Locale.ROOT).startsWith("HTTP")) {
// Response