Fix other logic error in legacy

This commit is contained in:
Matthew Messinger 2018-07-23 18:18:20 -04:00 committed by GitHub
parent ea3971dd50
commit a72fdfdf7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ public class LegacySkinServer implements SkinServer {
if (response.startsWith("ERROR: ")) { if (response.startsWith("ERROR: ")) {
response = response.substring(7); response = response.substring(7);
} }
if (!response.equalsIgnoreCase("OK") || !response.endsWith("OK")) if (!response.equalsIgnoreCase("OK") && !response.endsWith("OK"))
throw new IOException(response); throw new IOException(response);
return new SkinUploadResponse(response); return new SkinUploadResponse(response);