Skip to content

Commit

Permalink
Merge pull request #266 from basil/commons-codec
Browse files Browse the repository at this point in the history
Drop dependency on Commons Codec
  • Loading branch information
didiez authored Jan 16, 2022
2 parents bbe3633 + 1e0b9f0 commit 716bce5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import java.net.URL;
import java.net.URLEncoder;
import java.util.Arrays;
import java.util.Base64;
import java.util.Collections;
import java.util.List;
import jenkins.model.Jenkins;
import org.apache.commons.codec.binary.Base64;
import static org.junit.Assert.*;
import org.junit.Rule;
import org.junit.Test;
Expand Down Expand Up @@ -141,7 +141,7 @@ public void run() {
System.err.println("Received: " + line);
String magic = "Authorization: Basic ";
if (line.startsWith(magic)) {
sniffed = new String(Base64.decodeBase64(line.substring(magic.length())));
sniffed = new String(Base64.getDecoder().decode(line.substring(magic.length())));
System.err.println("decoded to: " + sniffed);
}
}
Expand Down

0 comments on commit 716bce5

Please sign in to comment.