Skip to content

Commit

Permalink
Fix #258
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Development committed Jul 18, 2015
1 parent feeae7d commit 45fb0e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -165,7 +165,7 @@ public boolean verify(String hostname, SSLSession session) {
}

if(username != null && password != null) {
urlConnection.setRequestProperty("Authorization", "Basic " + Base64.encodeToString((username + ":" + password).getBytes(), Base64.DEFAULT));
urlConnection.setRequestProperty("Authorization", "Basic " + Base64.encodeToString((username + ":" + password).getBytes(), Base64.NO_WRAP));
}

return (HttpURLConnection) urlConnection;
Expand Down

0 comments on commit 45fb0e2

Please sign in to comment.