1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Pwned: enable padding

This commit is contained in:
M66B 2024-04-27 09:33:38 +02:00
parent 9b85d39460
commit 2589a5003f

View file

@ -43,6 +43,7 @@ public class HaveIBeenPwned {
Log.i("GET " + url); Log.i("GET " + url);
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");
connection.addRequestProperty("Add-Padding", "true");
connection.setReadTimeout(FETCH_TIMEOUT); connection.setReadTimeout(FETCH_TIMEOUT);
connection.setConnectTimeout(FETCH_TIMEOUT); connection.setConnectTimeout(FETCH_TIMEOUT);
ConnectionHelper.setUserAgent(context, connection); ConnectionHelper.setUserAgent(context, connection);