Skip to content

Commit

Permalink
Attempt to avoid mysterious byte code verification failure (cf. #94 (…
Browse files Browse the repository at this point in the history
  • Loading branch information
fhaftmann committed Apr 30, 2022
1 parent f45025d commit a23e732
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public URLConnection getConnection() throws IOException {
}

if (protocol.equalsIgnoreCase("http") || protocol.equalsIgnoreCase("https")) {
String encoded = new String(new Base64().encode(userPass.getBytes("UTF-8")));
String encoded = new String(Base64.encodeBase64(userPass.getBytes("UTF-8")));
URLConnection connection = mUrl.openConnection();
connection.setRequestProperty("Authorization", "Basic " + encoded);
return connection;
Expand Down

0 comments on commit a23e732

Please sign in to comment.