System.getProperty("java.version")));
connection.setRequestProperty("X-OpenRocket-Country",
Communicator.encode(System.getProperty("user.country") + " " +
System.getProperty("java.version")));
connection.setRequestProperty("X-OpenRocket-Country",
Communicator.encode(System.getProperty("user.country") + " " +
if (connection.getResponseCode() != Communicator.UPDATE_INFO_UPDATE_AVAILABLE) {
// Error communicating with server
if (connection.getResponseCode() != Communicator.UPDATE_INFO_UPDATE_AVAILABLE) {
// Error communicating with server
- if (!Communicator.UPDATE_INFO_CONTENT_TYPE.equalsIgnoreCase(
- connection.getContentType())) {
+ String contentType = connection.getContentType();
+ if (contentType == null ||
+ contentType.toLowerCase().indexOf(Communicator.UPDATE_INFO_CONTENT_TYPE) < 0) {
// Update is available, parse input
is = connection.getInputStream();
// Update is available, parse input
is = connection.getInputStream();