From 2589a5003f36cb17c993191e475f2c624f8c49bc Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 27 Apr 2024 09:33:38 +0200 Subject: [PATCH] Pwned: enable padding --- app/src/main/java/eu/faircode/email/HaveIBeenPwned.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java b/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java index 7431b6c9dd..297159ce3f 100644 --- a/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java +++ b/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java @@ -43,6 +43,7 @@ public class HaveIBeenPwned { Log.i("GET " + url); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setRequestMethod("GET"); + connection.addRequestProperty("Add-Padding", "true"); connection.setReadTimeout(FETCH_TIMEOUT); connection.setConnectTimeout(FETCH_TIMEOUT); ConnectionHelper.setUserAgent(context, connection);