X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fcommunication%2FUpdateInfoRetriever.java;h=017f6add3fa1272a7697ff2a15c372a3560a8723;hb=a297db7cfb4074b8e60152cdfb9a8ceecd1e4c2b;hp=3122f0859c310b68e6000c685d29e00a101a4f1a;hpb=df62f231deea5fa147886c7c904c656dd8a0b852;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java index 3122f085..017f6add 100644 --- a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java +++ b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java @@ -67,7 +67,7 @@ public class UpdateInfoRetriever { } - + /** * Parse the data received from the server. * @@ -84,7 +84,7 @@ public class UpdateInfoRetriever { reader = new BufferedReader(r); } - + String version = null; ArrayList> updates = new ArrayList>(); @@ -113,7 +113,7 @@ public class UpdateInfoRetriever { } - + /** * An asynchronous task that fetches and parses the update info. * @@ -183,7 +183,7 @@ public class UpdateInfoRetriever { String contentType = connection.getContentType(); if (contentType == null || - contentType.toLowerCase().indexOf(Communicator.UPDATE_INFO_CONTENT_TYPE) < 0) { + contentType.toLowerCase(Locale.ENGLISH).indexOf(Communicator.UPDATE_INFO_CONTENT_TYPE) < 0) { // Unknown response type log.warn("Unknown Content-type received:" + contentType); return; @@ -223,7 +223,7 @@ public class UpdateInfoRetriever { return; } - + info = new UpdateInfo(version, updates); log.info("Found update: " + info); } finally {