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

Commit 86a6019f authored by Paul Westbrook's avatar Paul Westbrook
Browse files

Enable downloads of https urls

Bug: 3001890
Change-Id: Ibb2bc5c8efe90744a3b6f76bd31c3199a7365827
parent 6734b9f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -286,8 +286,8 @@ public class DownloadManager {
                throw new NullPointerException();
            }
            String scheme = uri.getScheme();
            if (scheme == null || !scheme.equals("http")) {
                throw new IllegalArgumentException("Can only download HTTP URIs: " + uri);
            if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) {
                throw new IllegalArgumentException("Can only download HTTP/HTTPS URIs: " + uri);
            }
            mUri = uri;
        }