Skip to content

Commit

Permalink
[JENKINS-26580] Fixed indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayabd committed Jan 28, 2015
1 parent 8209680 commit 9fb7084
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/hudson/remoting/Engine.java
Expand Up @@ -179,16 +179,16 @@ public void run() {

// find out the TCP port
HttpURLConnection con = (HttpURLConnection)salURL.openConnection();
if (credentials != null) {
// TODO /tcpSlaveAgentListener is unprotected so why do we need to pass any credentials?
String encoding = Base64.encode(credentials.getBytes("UTF-8"));
con.setRequestProperty("Authorization", "Basic " + encoding);
}

if (proxyCredentials != null) {
String encoding = Base64.encode(proxyCredentials.getBytes("UTF-8"));
con.setRequestProperty("Proxy-Authorization", "Basic " + encoding);
}
if (credentials != null) {
// TODO /tcpSlaveAgentListener is unprotected so why do we need to pass any credentials?
String encoding = Base64.encode(credentials.getBytes("UTF-8"));
con.setRequestProperty("Authorization", "Basic " + encoding);
}

if (proxyCredentials != null) {
String encoding = Base64.encode(proxyCredentials.getBytes("UTF-8"));
con.setRequestProperty("Proxy-Authorization", "Basic " + encoding);
}
try {
try {
con.setConnectTimeout(30000);
Expand Down

0 comments on commit 9fb7084

Please sign in to comment.