Small fix for upload

This commit is contained in:
stom79 2017-11-22 09:04:31 +01:00
parent a087d271cc
commit e3ec47361a
3 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

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