Skip to content

Commit 36a836b

Browse files
authored
Set secure all http requests by default
1 parent 48fc2fa commit 36a836b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/src/main/java/com/cloudinary/android/MediaManager.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ private MediaManager(@NonNull Context context, @Nullable SignatureProvider signa
9595
}
9696
cloudinary.setAnalytics(new Analytics("F", VERSION, techVersion));
9797

98-
// set https as default for android P and up - in P the default policy fails all http
99-
// requests
100-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
101-
cloudinary.config.secure = true;
102-
}
98+
// set https as default for all http requests
99+
cloudinary.config.secure = true;
100+
103101

104102
callbackDispatcher.registerCallback(new UploadCallback() {
105103

0 commit comments

Comments
 (0)