diff --git a/app/build.gradle b/app/build.gradle index 94437d1d9..1e56bb56d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "fr.gouv.etalab.mastodon" minSdkVersion 15 targetSdkVersion 27 - versionCode 76 - versionName "1.6.0" + versionCode 77 + versionName "1.6.1" } flavorDimensions "default" buildTypes { diff --git a/app/safetynet/release/app-safetynet-release-1.6.1-fix-test.apk b/app/safetynet/release/app-safetynet-release-1.6.1-fix-test.apk new file mode 100644 index 000000000..857aea78d Binary files /dev/null and b/app/safetynet/release/app-safetynet-release-1.6.1-fix-test.apk differ diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java b/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java index 4b365567c..03228552b 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java @@ -306,6 +306,7 @@ public class HttpsConnection { httpsURLConnection = (HttpsURLConnection) url.openConnection(); httpsURLConnection.setFixedLengthStreamingMode(lengthSent); + httpsURLConnection.setRequestProperty("User-Agent", Helper.USER_AGENT); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) httpsURLConnection.setSSLSocketFactory(new TLSSocketFactory());