Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a29d8394 authored by Paul Westbrook's avatar Paul Westbrook Committed by Android (Google) Code Review
Browse files

Merge "Enable downloads of https urls"

parents 5aed4b82 86a6019f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -286,8 +286,8 @@ public class DownloadManager {
                throw new NullPointerException();
                throw new NullPointerException();
            }
            }
            String scheme = uri.getScheme();
            String scheme = uri.getScheme();
            if (scheme == null || !scheme.equals("http")) {
            if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) {
                throw new IllegalArgumentException("Can only download HTTP URIs: " + uri);
                throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri);
            }
            }
            mUri = uri;
            mUri = uri;
        }
        }