Pwned: enable padding

This commit is contained in:
M66B 2024-04-27 09:33:38 +02:00
parent 9b85d39460
commit 2589a5003f
1 changed files with 1 additions and 0 deletions

View File

@ -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);