mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Pwned: enable padding
This commit is contained in:
parent
9b85d39460
commit
2589a5003f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue