From f75afeca4ae03857baaba23e2ba3c8bfc10d7133 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Tue, 10 Sep 2019 17:24:30 +0200 Subject: [PATCH] Reverse preemptive auth added for #105 as it breaks reverse proxies with digest, see #499 --- .../daemon/Transmission/TransmissionAdapter.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/org/transdroid/daemon/Transmission/TransmissionAdapter.java b/app/src/main/java/org/transdroid/daemon/Transmission/TransmissionAdapter.java index 6e351971..fe088464 100644 --- a/app/src/main/java/org/transdroid/daemon/Transmission/TransmissionAdapter.java +++ b/app/src/main/java/org/transdroid/daemon/Transmission/TransmissionAdapter.java @@ -418,13 +418,6 @@ public class TransmissionAdapter implements IDaemonAdapter { httppost.addHeader(sessionHeader, sessionToken); } - // Force preemptive authentication. This makes sure there is an 'Authentication: ' header being send before trying and failing and - // retrying by the basic authentication mechanism of DefaultHttpClient - if (settings.shouldUseAuthentication() && !TextUtils.isEmpty(settings.getUsername())) { - httppost.addHeader("Authorization", "Basic " + - Base64.encodeBytes((settings.getUsername() + ":" + settings.getPassword()).getBytes())); - } - // Execute log.d(LOG_NAME, "Execute " + data.getString("method") + " request to " + httppost.getURI().toString()); HttpResponse response = httpclient.execute(httppost);