Skip to content

Commit

Permalink
Fixed right margin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Mar 24, 2015
1 parent 722cc7f commit 5fbe62f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LocalDataDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public class LocalDataDownloader {
public static String username = "";
public static String password = "";

public static void main(String[] args) throws IOException, NoSuchAlgorithmException, KeyManagementException{
public static void main(String[] args) throws IOException, NoSuchAlgorithmException,
KeyManagementException{
//Make sure there are the correct number of arguments
if(args.length < 3){
throw new IllegalArgumentException("You must have at least 3 arguments");
Expand Down Expand Up @@ -84,7 +85,8 @@ public boolean verify(String hostname, SSLSession session) {

//Add the basic auth if needed
if(basicAuthentication){
String basicAuth = new String(Base64.getEncoder().encode((username + ":" + password).getBytes()));
String basicAuth = new String(Base64.getEncoder().encode(
(username + ":" + password).getBytes()));
connection.setRequestProperty("Authorization", "Basic " + basicAuth);
}

Expand Down

0 comments on commit 5fbe62f

Please sign in to comment.