apparently LOLLIPOP also needs to use http

This commit is contained in:
Eric House 2024-03-01 16:59:29 -08:00
parent 1c80fa518f
commit 0c5b0a5823

View file

@ -118,7 +118,7 @@ public class NetUtils {
// just to be safe.
public static String ensureProto( String url )
{
String result = Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT
String result = Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP
? url.replaceFirst( "^https:", "http:" )
: url.replaceFirst( "^http:", "https:" );
if ( ! url.equals( result ) ) {