Small fix for upload
This commit is contained in:
parent
a087d271cc
commit
e3ec47361a
|
@ -7,8 +7,8 @@ android {
|
||||||
applicationId "fr.gouv.etalab.mastodon"
|
applicationId "fr.gouv.etalab.mastodon"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 76
|
versionCode 77
|
||||||
versionName "1.6.0"
|
versionName "1.6.1"
|
||||||
}
|
}
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
Binary file not shown.
|
@ -306,6 +306,7 @@ public class HttpsConnection {
|
||||||
|
|
||||||
httpsURLConnection = (HttpsURLConnection) url.openConnection();
|
httpsURLConnection = (HttpsURLConnection) url.openConnection();
|
||||||
httpsURLConnection.setFixedLengthStreamingMode(lengthSent);
|
httpsURLConnection.setFixedLengthStreamingMode(lengthSent);
|
||||||
|
|
||||||
httpsURLConnection.setRequestProperty("User-Agent", Helper.USER_AGENT);
|
httpsURLConnection.setRequestProperty("User-Agent", Helper.USER_AGENT);
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
|
||||||
httpsURLConnection.setSSLSocketFactory(new TLSSocketFactory());
|
httpsURLConnection.setSSLSocketFactory(new TLSSocketFactory());
|
||||||
|
|
Loading…
Reference in New Issue